Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7120dd73 authored by lyn's avatar lyn
Browse files

Move beginNewAttachState to PipelineEntry

Bug: 399736937
Test: manual
Flag: com.android.systemui.notification_bundle_ui
Change-Id: Ieeaf0154bbceaf4940ee7c90e8dec8c4b83f9cfd
parent 75c4c6e6
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -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();
    }
}
+9 −0
Original line number Diff line number Diff line
@@ -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();
    }
}
+5 −0
Original line number Diff line number Diff line
@@ -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();
    }