diff options
| author | 2024-04-12 16:49:49 -0700 | |
|---|---|---|
| committer | 2024-05-10 14:04:44 -0700 | |
| commit | 21128ed12b8d3669eddd72bf570490b6f9d3f0dd (patch) | |
| tree | 19855c8ddad0ceab4ae840675b587a9adfff887f | |
| parent | c15136876681b85b71fdf29bc88c1552250c1dd9 (diff) | |
Add info about the overflow state changing / showing to bubble bar
- Add the new bits to BubbleBarUpdate
- Include them in the state change
Test: none
Bug: 334175587
Change-Id: Iee94156b236f814a9363cf2182e333a1138a4162
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleData.java | 2 | ||||
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/BubbleBarUpdate.java | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleData.java b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleData.java index ceeed88fa440..ea30af5c3d5a 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleData.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleData.java @@ -159,6 +159,8 @@ public class BubbleData { bubbleBarUpdate.bubbleKeysInOrder.add(bubbles.get(i).getKey()); } } + bubbleBarUpdate.showOverflowChanged = showOverflowChanged; + bubbleBarUpdate.showOverflow = !overflowBubbles.isEmpty(); return bubbleBarUpdate; } diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/BubbleBarUpdate.java b/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/BubbleBarUpdate.java index 6980c6f01e5d..ec3c6013e544 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/BubbleBarUpdate.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/BubbleBarUpdate.java @@ -52,6 +52,8 @@ public class BubbleBarUpdate implements Parcelable { public BubbleBarLocation bubbleBarLocation; @Nullable public Point expandedViewDropTargetSize; + public boolean showOverflowChanged; + public boolean showOverflow; // This is only populated if bubbles have been removed. public List<RemovedBubble> removedBubbles = new ArrayList<>(); @@ -92,6 +94,8 @@ public class BubbleBarUpdate implements Parcelable { BubbleBarLocation.class); expandedViewDropTargetSize = parcel.readParcelable(Point.class.getClassLoader(), Point.class); + showOverflowChanged = parcel.readBoolean(); + showOverflow = parcel.readBoolean(); } /** @@ -107,7 +111,8 @@ public class BubbleBarUpdate implements Parcelable { || suppressedBubbleKey != null || unsupressedBubbleKey != null || !currentBubbleList.isEmpty() - || bubbleBarLocation != null; + || bubbleBarLocation != null + || showOverflowChanged; } @NonNull @@ -128,6 +133,8 @@ public class BubbleBarUpdate implements Parcelable { + " currentBubbleList=" + currentBubbleList + " bubbleBarLocation=" + bubbleBarLocation + " expandedViewDropTargetSize=" + expandedViewDropTargetSize + + " showOverflowChanged=" + showOverflowChanged + + " showOverflow=" + showOverflow + " }"; } @@ -152,6 +159,8 @@ public class BubbleBarUpdate implements Parcelable { parcel.writeParcelableList(currentBubbleList, flags); parcel.writeParcelable(bubbleBarLocation, flags); parcel.writeParcelable(expandedViewDropTargetSize, flags); + parcel.writeBoolean(showOverflowChanged); + parcel.writeBoolean(showOverflow); } /** |