Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ListEntry.java +0 −9 Original line number Diff line number Diff line Loading @@ -65,13 +65,4 @@ public abstract class ListEntry extends PipelineEntry { @Nullable public PipelineEntry getPreviousParent() { return mPreviousAttachState.getParent(); } /** * Stores the current attach state into {@link #getPreviousAttachState()}} and then starts a * fresh attach state (all entries will be null/default-initialized). */ void beginNewAttachState() { mPreviousAttachState.clone(mAttachState); mAttachState.reset(); } } packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/PipelineEntry.java +9 −0 Original line number Diff line number Diff line Loading @@ -101,4 +101,13 @@ public abstract class PipelineEntry { public void setBucket(@PriorityBucket int bucket) { mBucket = bucket; } /** * Stores the current attach state into {@link #getPreviousAttachState()}} and then starts a * fresh attach state (all entries will be null/default-initialized). */ void beginNewAttachState() { mPreviousAttachState.clone(mAttachState); mAttachState.reset(); } } packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ShadeListBuilder.java +5 −0 Original line number Diff line number Diff line Loading @@ -565,6 +565,11 @@ public class ShadeListBuilder implements Dumpable, PipelineDumpable { entry.beginNewAttachState(); } for (BundleEntry be : mIdToBundleEntry.values()) { be.beginNewAttachState(); // TODO(b/399736937) Clear bundle children // BundleEntry has not representative summary so we do not need to clear it here. } mNotifList.clear(); } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ListEntry.java +0 −9 Original line number Diff line number Diff line Loading @@ -65,13 +65,4 @@ public abstract class ListEntry extends PipelineEntry { @Nullable public PipelineEntry getPreviousParent() { return mPreviousAttachState.getParent(); } /** * Stores the current attach state into {@link #getPreviousAttachState()}} and then starts a * fresh attach state (all entries will be null/default-initialized). */ void beginNewAttachState() { mPreviousAttachState.clone(mAttachState); mAttachState.reset(); } }
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/PipelineEntry.java +9 −0 Original line number Diff line number Diff line Loading @@ -101,4 +101,13 @@ public abstract class PipelineEntry { public void setBucket(@PriorityBucket int bucket) { mBucket = bucket; } /** * Stores the current attach state into {@link #getPreviousAttachState()}} and then starts a * fresh attach state (all entries will be null/default-initialized). */ void beginNewAttachState() { mPreviousAttachState.clone(mAttachState); mAttachState.reset(); } }
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ShadeListBuilder.java +5 −0 Original line number Diff line number Diff line Loading @@ -565,6 +565,11 @@ public class ShadeListBuilder implements Dumpable, PipelineDumpable { entry.beginNewAttachState(); } for (BundleEntry be : mIdToBundleEntry.values()) { be.beginNewAttachState(); // TODO(b/399736937) Clear bundle children // BundleEntry has not representative summary so we do not need to clear it here. } mNotifList.clear(); } Loading