diff options
author | yueg <yueg@google.com> | 2017-11-02 13:46:49 -0700 |
---|---|---|
committer | zachh <zachh@google.com> | 2017-11-11 06:37:53 +0000 |
commit | 83d8a62ee2b2262941590ff5ef35986dc1df1fa1 (patch) | |
tree | adec8983e89ee601dcd78610330523d3e99076ee | |
parent | 50a0f00319c6fe9730d42b1b5f8b90d49b7a140a (diff) |
Commit transaction synchronously for OnHoldFragment.
We show OnHoldFragment for new conference call, and remove it after updating info. After cl/172475223, the update only happens once and sometimes removing the fragment happens before adding the fragment. Committing synchronously fix the bug.
Test: manual
PiperOrigin-RevId: 174374676
Change-Id: I5337f6592ca2924ed6a089ecaefe00d920f85738
-rw-r--r-- | java/com/android/incallui/incall/impl/InCallFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/android/incallui/incall/impl/InCallFragment.java b/java/com/android/incallui/incall/impl/InCallFragment.java index fc31c74e2..73b414d46 100644 --- a/java/com/android/incallui/incall/impl/InCallFragment.java +++ b/java/com/android/incallui/incall/impl/InCallFragment.java @@ -320,7 +320,7 @@ public class InCallFragment extends Fragment } } transaction.setCustomAnimations(R.anim.abc_slide_in_top, R.anim.abc_slide_out_top); - transaction.commitAllowingStateLoss(); + transaction.commitNowAllowingStateLoss(); } @Override |