summaryrefslogtreecommitdiff
path: root/LICENSE
diff options
context:
space:
mode:
authortwyen <twyen@google.com>2018-05-10 17:34:55 -0700
committerCopybara-Service <copybara-piper@google.com>2018-05-11 11:43:37 -0700
commit5bafd13591ca1506c61b0b46326782b91f9de33a (patch)
treeff9c6edb4c56133b370c6313a2ee64527879a8ea /LICENSE
parent56a4cda95e3f204e2a533a1921e14d2615638021 (diff)
Prevent showDialpad from adding multiple instances of fragments
Previously when the dialpad is shown the fragment manager is checked to decide whether to create a new fragment or not. This check does not account for pending transactions. If multiple ACTION_DIAL intents is received before the first showDialpad transaction is actually committed (due to the system lagging), multiple dialpad fragment will be added and cause crashes. In this CL, the MainSearchController will hold on to the dialpad and search fragment instance, instead of querying the fragment manager. TEST=manual - modify code to delay the commit. The timing is difficult to set up in tests. Bug: 77540395 Test: manual - modify code to delay the commit. The timing is difficult to set up in tests. PiperOrigin-RevId: 196197187 Change-Id: Ie649a9fba0ecfd8944781949c179ac8739930830
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions