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

Commit 590f58a2 authored by Ioana Alexandru's avatar Ioana Alexandru
Browse files

Fix inverted flag check

Bug: 399795556
Change-Id: Ieb3ecb324f49f8d8c60b56e6a861f423ebb6d431
Flag: com.android.systemui.notification_bundle_ui
Test: not tested
parent 0a40deba
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -409,12 +409,12 @@ constructor(


            if (counter != null) {
            if (counter != null) {
                if (NotificationBundleUi.isEnabled) {
                if (NotificationBundleUi.isEnabled) {
                    val entry = (currentNotification as? ExpandableNotificationRow)?.entry
                    counter.incrementForBucket(entry?.bucket)
                } else {
                    val entryAdapter =
                    val entryAdapter =
                        (currentNotification as? ExpandableNotificationRow)?.entryAdapter
                        (currentNotification as? ExpandableNotificationRow)?.entryAdapter
                    counter.incrementForBucket(entryAdapter?.sectionBucket)
                    counter.incrementForBucket(entryAdapter?.sectionBucket)
                } else {
                    val entry = (currentNotification as? ExpandableNotificationRow)?.entry
                    counter.incrementForBucket(entry?.bucket)
                }
                }
            }
            }