diff options
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java index ed3ebf5..a1ab7ec 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java @@ -72,6 +72,22 @@ public class NotificationData { public boolean hasInterrupted() { return interruption; } + + /** + * Resets the notification entry to be re-used. + */ + public void reset() { + // NOTE: Icon needs to be preserved for now. + // We should fix this at some point. + expanded = null; + expandedPublic = null; + expandedBig = null; + autoRedacted = false; + legacy = false; + if (row != null) { + row.reset(); + } + } } private final ArrayList<Entry> mEntries = new ArrayList<Entry>(); |