Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ShadeListBuilder.java +3 −0 Original line number Diff line number Diff line Loading @@ -289,6 +289,9 @@ public class ShadeListBuilder implements Dumpable, PipelineDumpable { mIdToBundleEntry.clear(); for (String id: mNotifBundler.getBundleIds()) { if (BundleCoordinator.debugBundleUi) { Log.i(TAG, "create BundleEntry with id: " + id); } mIdToBundleEntry.put(id, new BundleEntry(id)); } } Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/BundleCoordinator.kt +11 −1 Original line number Diff line number Diff line Loading @@ -98,9 +98,14 @@ class BundleCoordinator @Inject constructor( object : NotifBundler("NotifBundler") { // Use list instead of set to keep fixed order override val bundleIds: List<String> = SYSTEM_RESERVED_IDS override val bundleIds: List<String> = if (debugBundleUi) SYSTEM_RESERVED_IDS + "notify" else SYSTEM_RESERVED_IDS override fun getBundleIdOrNull(entry: NotificationEntry?): String? { if (debugBundleUi && entry?.key?.contains("notify") == true) { return "notify" } return entry?.representativeEntry?.channel?.id?.takeIf { it in this.bundleIds } } } Loading @@ -110,4 +115,9 @@ class BundleCoordinator @Inject constructor( pipeline.setNotifBundler(bundler) } } companion object { @kotlin.jvm.JvmField var debugBundleUi: Boolean = true } } Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ShadeListBuilder.java +3 −0 Original line number Diff line number Diff line Loading @@ -289,6 +289,9 @@ public class ShadeListBuilder implements Dumpable, PipelineDumpable { mIdToBundleEntry.clear(); for (String id: mNotifBundler.getBundleIds()) { if (BundleCoordinator.debugBundleUi) { Log.i(TAG, "create BundleEntry with id: " + id); } mIdToBundleEntry.put(id, new BundleEntry(id)); } } Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/BundleCoordinator.kt +11 −1 Original line number Diff line number Diff line Loading @@ -98,9 +98,14 @@ class BundleCoordinator @Inject constructor( object : NotifBundler("NotifBundler") { // Use list instead of set to keep fixed order override val bundleIds: List<String> = SYSTEM_RESERVED_IDS override val bundleIds: List<String> = if (debugBundleUi) SYSTEM_RESERVED_IDS + "notify" else SYSTEM_RESERVED_IDS override fun getBundleIdOrNull(entry: NotificationEntry?): String? { if (debugBundleUi && entry?.key?.contains("notify") == true) { return "notify" } return entry?.representativeEntry?.channel?.id?.takeIf { it in this.bundleIds } } } Loading @@ -110,4 +115,9 @@ class BundleCoordinator @Inject constructor( pipeline.setNotifBundler(bundler) } } companion object { @kotlin.jvm.JvmField var debugBundleUi: Boolean = true } }