diff options
author | Yorke Lee <yorkelee@google.com> | 2014-03-10 12:16:58 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-03-10 12:17:46 -0700 |
commit | 900988c67aa4276f6e2675e05d35db88f78c70aa (patch) | |
tree | c52c790234ac0c9e1927558326894d06556d2519 /InCallUI/src/com/android/incallui/InCallActivity.java | |
parent | 70746d63e8048353de7e95e4e20fba8d762b8145 (diff) |
Fix IllegalStateException in InCallUI
InCallActivity.displayDialpad can possibly be called after
onSaveInstanceState, so we need to use commitAllowingStateLoss
instead of commit.
Bug: 13396054
Change-Id: If2f61b16d97db159bebb5ddb5d1feecb87765386
Diffstat (limited to 'InCallUI/src/com/android/incallui/InCallActivity.java')
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallActivity.java b/InCallUI/src/com/android/incallui/InCallActivity.java index 5a11b1885..5f446336a 100644 --- a/InCallUI/src/com/android/incallui/InCallActivity.java +++ b/InCallUI/src/com/android/incallui/InCallActivity.java @@ -411,7 +411,7 @@ public class InCallActivity extends Activity { ft.setCustomAnimations(0, R.anim.slide_out); ft.hide(mDialpadFragment); } - ft.commit(); + ft.commitAllowingStateLoss(); InCallPresenter.getInstance().getProximitySensor().onDialpadVisible(showDialpad); } |