From 10f6e8222a5ee1cc2da1b107c3a344b34c726501 Mon Sep 17 00:00:00 2001 From: yueg Date: Wed, 17 Jan 2018 15:32:18 -0800 Subject: Move onUiShowing() call from onResume/onPause to onStart/onStop. It makes sure bubble doesn't appear on split screen when in-call UI is not showing. Although bubble still shows in recents screen. It also make sure the same onUiShowing() is not called multiple times. Bug: 67605985,71746139 Test: InCallActivityTest PiperOrigin-RevId: 182280886 Change-Id: I2a28d0258c722d530000729a89751c6d6b1ee6fd --- java/com/android/incallui/InCallPresenter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'java/com/android/incallui/InCallPresenter.java') diff --git a/java/com/android/incallui/InCallPresenter.java b/java/com/android/incallui/InCallPresenter.java index f0d3adc7a..558ca33fc 100644 --- a/java/com/android/incallui/InCallPresenter.java +++ b/java/com/android/incallui/InCallPresenter.java @@ -1044,14 +1044,16 @@ public class InCallPresenter implements CallList.Listener, AudioModeProvider.Aud "updateIsChangingConfigurations = " + isChangingConfigurations); } - /** Called when the activity goes in/out of the foreground. */ - public void onUiShowing(boolean showing) { + void updateNotification() { // We need to update the notification bar when we leave the UI because that // could trigger it to show again. if (statusBarNotifier != null) { statusBarNotifier.updateNotification(); } + } + /** Called when the activity goes in/out of the foreground. */ + public void onUiShowing(boolean showing) { if (proximitySensor != null) { proximitySensor.onInCallShowing(showing); } -- cgit v1.2.3