summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authoryueg <yueg@google.com>2017-11-02 13:46:49 -0700
committerzachh <zachh@google.com>2017-11-11 06:37:53 +0000
commit83d8a62ee2b2262941590ff5ef35986dc1df1fa1 (patch)
treeadec8983e89ee601dcd78610330523d3e99076ee /java
parent50a0f00319c6fe9730d42b1b5f8b90d49b7a140a (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
Diffstat (limited to 'java')
-rw-r--r--java/com/android/incallui/incall/impl/InCallFragment.java2
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