commit | fa389360c1accb42632e0a1f0b15882ba7511059 | [log] [tgz] |
---|---|---|
author | Ats Jenk <atsjenk@google.com> | Thu May 12 04:14:54 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu May 12 04:14:54 2022 +0000 |
tree | b677c4c0cbfb631d9e830d8d58a3ba953ea8d7de | |
parent | bd38e5c3d71fa850db4da84bd65e0ec6a313408e [diff] | |
parent | c07542d7f7fbfc579f26094ec1a6aa4aba982f97 [diff] |
Merge "Skip passing gesture to bubble when notif expanded" into tm-dev am: 6e6d747d95 am: c07542d7f7 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18290837 Change-Id: I6971271e43e13bba564a325941866d30a3480702 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/quickstep/src/com/android/quickstep/RecentsAnimationDeviceState.java b/quickstep/src/com/android/quickstep/RecentsAnimationDeviceState.java index 920ed71..4fb7e6b 100644 --- a/quickstep/src/com/android/quickstep/RecentsAnimationDeviceState.java +++ b/quickstep/src/com/android/quickstep/RecentsAnimationDeviceState.java
@@ -419,6 +419,13 @@ } /** + * @return whether notification panel is expanded + */ + public boolean isNotificationPanelExpanded() { + return (mSystemUiStateFlags & SYSUI_STATE_NOTIFICATION_PANEL_EXPANDED) != 0; + } + + /** * @return whether the global actions dialog is showing */ public boolean isSystemUiDialogShowing() {
diff --git a/quickstep/src/com/android/quickstep/TouchInteractionService.java b/quickstep/src/com/android/quickstep/TouchInteractionService.java index 0078d55..f2583fb 100644 --- a/quickstep/src/com/android/quickstep/TouchInteractionService.java +++ b/quickstep/src/com/android/quickstep/TouchInteractionService.java
@@ -700,7 +700,10 @@ // If Bubbles is expanded, use the overlay input consumer, which will close Bubbles // instead of going all the way home when a swipe up is detected. - if (mDeviceState.isBubblesExpanded() || mDeviceState.isSystemUiDialogShowing()) { + // Notification panel can be expanded on top of expanded bubbles. Bubbles remain + // expanded in the back. Make sure swipe up is not passed to bubbles in this case. + if ((mDeviceState.isBubblesExpanded() && !mDeviceState.isNotificationPanelExpanded()) + || mDeviceState.isSystemUiDialogShowing()) { base = new SysUiOverlayInputConsumer( getBaseContext(), mDeviceState, mInputMonitorCompat); }