diff options
author | yueg <yueg@google.com> | 2017-09-21 16:08:30 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-09-22 16:01:54 +0000 |
commit | 7b28abc0f919395a971f48d8add255e1a0303ec2 (patch) | |
tree | 2d642036d7c3e46a73c91f3f7d9f036d37d2c79c /java | |
parent | 6050ec2b9f6b677a129263a81bd9dcb8e6ce00d5 (diff) |
Don't show bubble when InCallActivity is visible in multi screen mode.
By moving InCallPresenter.onUiShowing() from InCallActivityCommon.onResume/onPause to onStart/onStop.
Test: manual
PiperOrigin-RevId: 169615685
Change-Id: I146a5d87028040b0f5e587b8163f29d55b9e7ff7
Diffstat (limited to 'java')
-rw-r--r-- | java/com/android/incallui/InCallActivityCommon.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/java/com/android/incallui/InCallActivityCommon.java b/java/com/android/incallui/InCallActivityCommon.java index 14531e0ee..fec9700ab 100644 --- a/java/com/android/incallui/InCallActivityCommon.java +++ b/java/com/android/incallui/InCallActivityCommon.java @@ -263,6 +263,9 @@ public class InCallActivityCommon { == InCallOrientationEventListener.ACTIVITY_PREFERENCE_ALLOW_ROTATION); InCallPresenter.getInstance().onActivityStarted(); + if (!isRecreating) { + InCallPresenter.getInstance().onUiShowing(true); + } } public void onResume() { @@ -272,7 +275,6 @@ public class InCallActivityCommon { "InCallPresenter is ready for tear down, not sending updates"); } else { updateTaskDescription(); - InCallPresenter.getInstance().onUiShowing(true); } // If there is a pending request to show or hide the dialpad, handle that now. @@ -316,7 +318,6 @@ public class InCallActivityCommon { dialpadFragment.onDialerKeyUp(null); } - InCallPresenter.getInstance().onUiShowing(false); if (inCallActivity.isFinishing()) { InCallPresenter.getInstance().unsetActivity(inCallActivity); } @@ -338,6 +339,9 @@ public class InCallActivityCommon { enableInCallOrientationEventListener(false); InCallPresenter.getInstance().updateIsChangingConfigurations(); InCallPresenter.getInstance().onActivityStopped(); + if (!isRecreating) { + InCallPresenter.getInstance().onUiShowing(false); + } } public void onDestroy() { |