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

Commit 7c5b8d6e authored by Lyn Han's avatar Lyn Han Committed by lyn
Browse files

Move getSectionIndex impl to PipelineEntry

Bug: 395698521
Test: manual
Flag: com.android.systemui.notification_bundle_ui
Change-Id: I14350595f870e23022d190754d6d69300e31b3fa
parent c4c89cd9
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -63,11 +63,6 @@ public class BundleEntry extends PipelineEntry {
        return null;
    }

    @Override
    public int getSectionIndex() {
        return 0;
    }

    @Nullable
    @Override
    public PipelineEntry getParent() {
+0 −4
Original line number Diff line number Diff line
@@ -66,10 +66,6 @@ public abstract class ListEntry extends PipelineEntry {
        return mPreviousAttachState.getParent();
    }

    public int getSectionIndex() {
        return mAttachState.getSection() != null ? mAttachState.getSection().getIndex() : -1;
    }

    /**
     * Stores the current attach state into {@link #getPreviousAttachState()}} and then starts a
     * fresh attach state (all entries will be null/default-initialized).
+3 −1
Original line number Diff line number Diff line
@@ -66,7 +66,9 @@ public abstract class PipelineEntry {
    /**
     * @return Index of section assigned to this entry.
     */
    public abstract int getSectionIndex();
    public int getSectionIndex() {
        return mAttachState.getSection() != null ? mAttachState.getSection().getIndex() : -1;
    }

    /**
     * @return Parent PipelineEntry