diff options
| author | 2024-05-10 22:59:37 +0000 | |
|---|---|---|
| committer | 2024-05-10 22:59:37 +0000 | |
| commit | ec0db2c3e2f15432ad2d511c84dee5df7e285d39 (patch) | |
| tree | 5a12e20b2b4a6506f81c0223ae9d84d7a18b8d43 | |
| parent | 281bd5293840508cbd4550b0ed4cf291fcf07b6a (diff) | |
| parent | 21128ed12b8d3669eddd72bf570490b6f9d3f0dd (diff) | |
Merge "Add info about the overflow state changing / showing to bubble bar" into main
| -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); } /** |