Loading packages/SystemUI/aconfig/systemui.aconfig +10 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,16 @@ flag { bug: "343942780" } flag { name: "notification_row_is_removed_fix" namespace: "systemui" description: "Fix incorrect isRemoved value in ExpandableNotificationRow" bug: "417457086" metadata { purpose: PURPOSE_BUGFIX } } flag { name: "notification_ambient_suppression_after_inflation" namespace: "systemui" Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/NotificationEntry.java +0 −12 Original line number Diff line number Diff line Loading @@ -712,18 +712,6 @@ public final class NotificationEntry extends ListEntry { return row != null && row.isDismissed(); } public boolean isRowRemoved() { return row != null && row.isRemoved(); } /** * @return {@code true} if the row is null or removed */ public boolean isRemoved() { //TODO: recycling invalidates this return row == null || row.isRemoved(); } public boolean isRowPinned() { return getPinnedStatus().isPinned(); } Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotifBindPipeline.java +9 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.systemui.statusbar.notification.row; import static com.android.systemui.Flags.notificationRowIsRemovedFix; import android.util.ArrayMap; import android.util.ArraySet; import android.widget.FrameLayout; Loading Loading @@ -218,6 +220,13 @@ public final class NotifBindPipeline { mStage.deleteStageParams(entry); mStartProcessor.cancel(entry); } @Override public void onEntryRemoved(NotificationEntry entry, int reason) { if (notificationRowIsRemovedFix()) { entry.removeRow(); } } }; private @NonNull BindEntry getBindEntry(NotificationEntry entry) { Loading Loading
packages/SystemUI/aconfig/systemui.aconfig +10 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,16 @@ flag { bug: "343942780" } flag { name: "notification_row_is_removed_fix" namespace: "systemui" description: "Fix incorrect isRemoved value in ExpandableNotificationRow" bug: "417457086" metadata { purpose: PURPOSE_BUGFIX } } flag { name: "notification_ambient_suppression_after_inflation" namespace: "systemui" Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/NotificationEntry.java +0 −12 Original line number Diff line number Diff line Loading @@ -712,18 +712,6 @@ public final class NotificationEntry extends ListEntry { return row != null && row.isDismissed(); } public boolean isRowRemoved() { return row != null && row.isRemoved(); } /** * @return {@code true} if the row is null or removed */ public boolean isRemoved() { //TODO: recycling invalidates this return row == null || row.isRemoved(); } public boolean isRowPinned() { return getPinnedStatus().isPinned(); } Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotifBindPipeline.java +9 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.systemui.statusbar.notification.row; import static com.android.systemui.Flags.notificationRowIsRemovedFix; import android.util.ArrayMap; import android.util.ArraySet; import android.widget.FrameLayout; Loading Loading @@ -218,6 +220,13 @@ public final class NotifBindPipeline { mStage.deleteStageParams(entry); mStartProcessor.cancel(entry); } @Override public void onEntryRemoved(NotificationEntry entry, int reason) { if (notificationRowIsRemovedFix()) { entry.removeRow(); } } }; private @NonNull BindEntry getBindEntry(NotificationEntry entry) { Loading