summaryrefslogtreecommitdiff
path: root/java/com/android/incallui/InCallPresenter.java
diff options
context:
space:
mode:
authoryueg <yueg@google.com>2018-01-17 15:32:18 -0800
committerCopybara-Service <copybara-piper@google.com>2018-01-17 16:37:04 -0800
commit10f6e8222a5ee1cc2da1b107c3a344b34c726501 (patch)
treee67c4075d728812876a08789a07c60f85e106b77 /java/com/android/incallui/InCallPresenter.java
parentb494ce8c015cf54a28a47f44791dc95ea6c25aad (diff)
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
Diffstat (limited to 'java/com/android/incallui/InCallPresenter.java')
-rw-r--r--java/com/android/incallui/InCallPresenter.java6
1 files changed, 4 insertions, 2 deletions
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);
}