summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mady Mellor <madym@google.com> 2023-04-25 16:10:46 -0700
committer Mady Mellor <madym@google.com> 2023-04-26 15:19:12 -0700
commit006bb8d932f44079cdce20b9e596854462aa7af0 (patch)
treed016706c778bb3756d58888d5be855b153161473
parenta346767333f1394b6ded22723a66f9d1fafe2ef2 (diff)
If the manage menu state isn't different don't animate
Test: manual - add logs to TaskViewTransition setTaskBounds and setTaskVisible and make sure setTaskBounds doesn't get triggered from the manage menu when swiping up to collapse the view - also check that manage menu works & animates away when you tap outside the bubble and lock the screen - check that manage menu is correct on rotation Bug: 279074446 Change-Id: Idbac68252132bc200c75306c0874278b468e1bfb
-rw-r--r--libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java
index b9ff5f0e820a..f3efaade945f 100644
--- a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java
+++ b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java
@@ -2884,6 +2884,7 @@ public class BubbleStackView extends FrameLayout
/** Hide or show the manage menu for the currently expanded bubble. */
@VisibleForTesting
public void showManageMenu(boolean show) {
+ if ((mManageMenu.getVisibility() == VISIBLE) == show) return;
mShowingManage = show;
// This should not happen, since the manage menu is only visible when there's an expanded