diff options
author | yueg <yueg@google.com> | 2017-09-05 11:31:47 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-09-11 10:56:28 -0700 |
commit | 6a80c8282d5dcb3749573baa2f3769204859307a (patch) | |
tree | a07d7f64ac43aa49c79dbf504a4ae51e4df35451 /java/com/android/voicemail/impl/OmtpVvmCarrierConfigHelper.java | |
parent | 9effa5c8840b462f58a1844693776a3b7bfccb1b (diff) |
Fix bubble crash when dismiss audio route selector dialog.
When AudioRouteSelectorDialogFragment tries to call
onAudioRouteSelectorDismiss() on its parent AudioRouteSelectorActivity, the parent might already finish,
which causes NPE. We should make sure the fragment is dismissed and removed before the activity finished. We do it when activity onPause because we don't expect it to resume.
Test: AudioRouteSelectorDialogFragmentTest
PiperOrigin-RevId: 167607068
Change-Id: Ifd2efcc92eb45262da2c6441bfac8119799d78f2
Diffstat (limited to 'java/com/android/voicemail/impl/OmtpVvmCarrierConfigHelper.java')
0 files changed, 0 insertions, 0 deletions