summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ioana Alexandru <aioana@google.com> 2025-01-08 05:18:56 -0800
committer Ioana Alexandru <aioana@google.com> 2025-01-08 05:20:21 -0800
commitf8dd6ea434bf71ddc7b433f8d18f0569f79372bc (patch)
tree39c95f7eb6b8b244934314db05975bc2a6dee1fc
parentebc22c95f70001f573d7cd1eed5de517b8ceac8d (diff)
Add a note about the behavior of onExpansionChanged.
Flag: EXEMPT comment-only Test: N/A Bug: 388470175 Change-Id: I416bcf2c433667694b8a7dd287cb16dc2b0a678b
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java
index 7e3d0043b91a..3866f79ed701 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java
@@ -3680,6 +3680,10 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
return super.disallowSingleClick(event);
}
+ // TODO: b/388470175 - Although this does get triggered when a notification
+ // is expanded by the system (e.g. the first notication in the shade), it
+ // will not be when a notification is collapsed by the system (such as when
+ // the shade is closed).
private void onExpansionChanged(boolean userAction, boolean wasExpanded) {
boolean nowExpanded = isExpanded();
if (mIsSummaryWithChildren && (!mIsMinimized || wasExpanded)) {