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

Commit 73c769c1 authored by lyn's avatar lyn
Browse files

Clear mIdToBundleEntry in setBundler

Bug: 396301289
Test: adb
Flag: com.android.systemui.notification_bundle_ui
Change-Id: Ie18d5f992871b8dda3803286dd4e98882cb7baae
parent 4d0f0957
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -282,18 +282,16 @@ public class ShadeListBuilder implements Dumpable, PipelineDumpable {
        Assert.isMainThread();
        mPipelineState.requireState(STATE_IDLE);

        // TODO(b/396301289) throw exception when setting more than once?
        mNotifBundler = bundler;

        if (mIdToBundleEntry.isEmpty()) {
        if (mNotifBundler == null) {
                throw new IllegalStateException("NotifBundler not attached.");
            throw new IllegalStateException(TAG + ".setBundler: null");
        }

        mIdToBundleEntry.clear();
        for (String id: mNotifBundler.getBundleIds()) {
            mIdToBundleEntry.put(id, new BundleEntry(id));
        }
    }
    }

    void setNotifStabilityManager(@NonNull NotifStabilityManager notifStabilityManager) {
        Assert.isMainThread();