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
diff --git a/java/com/android/incallui/InCallActivityCommon.java b/java/com/android/incallui/InCallActivityCommon.java
index 14531e0..fec9700 100644
--- a/java/com/android/incallui/InCallActivityCommon.java
+++ b/java/com/android/incallui/InCallActivityCommon.java
@@ -263,6 +263,9 @@
             == InCallOrientationEventListener.ACTIVITY_PREFERENCE_ALLOW_ROTATION);
 
     InCallPresenter.getInstance().onActivityStarted();
+    if (!isRecreating) {
+      InCallPresenter.getInstance().onUiShowing(true);
+    }
   }
 
   public void onResume() {
@@ -272,7 +275,6 @@
           "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 @@
       dialpadFragment.onDialerKeyUp(null);
     }
 
-    InCallPresenter.getInstance().onUiShowing(false);
     if (inCallActivity.isFinishing()) {
       InCallPresenter.getInstance().unsetActivity(inCallActivity);
     }
@@ -338,6 +339,9 @@
     enableInCallOrientationEventListener(false);
     InCallPresenter.getInstance().updateIsChangingConfigurations();
     InCallPresenter.getInstance().onActivityStopped();
+    if (!isRecreating) {
+      InCallPresenter.getInstance().onUiShowing(false);
+    }
   }
 
   public void onDestroy() {