Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ShadeListBuilder.java +6 −8 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ShadeListBuilder.java +6 −8 Original line number Diff line number Diff line Loading @@ -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(); Loading