summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-09-26 17:12:06 -0700
committerYorke Lee <yorkelee@google.com>2013-09-26 17:12:06 -0700
commit3487db78fd47ccecef4e6b86e5cacfc0a8e6ba83 (patch)
tree4e84df165908b1ee9348ba958a149aa73a22fc17
parent36df59e08b1d886da71f90ea4aff97533d43227e (diff)
Don't do fragment transactions if fragment is destroyed
Bug: 10953115 Change-Id: Idf8107ca9b49b31d2209751a09daabadacfc752b
-rw-r--r--src/com/android/dialer/DialtactsActivity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java
index 3e6591658..1a1713316 100644
--- a/src/com/android/dialer/DialtactsActivity.java
+++ b/src/com/android/dialer/DialtactsActivity.java
@@ -858,6 +858,10 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
* Hides the search fragment
*/
private void exitSearchUi() {
+ // See related bug in enterSearchUI();
+ if (getFragmentManager().isDestroyed()) {
+ return;
+ }
// Go all the way back to the favorites fragment, regardless of how many times we
// transitioned between search fragments
final BackStackEntry entry = getFragmentManager().getBackStackEntryAt(0);