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

Commit e20988bc authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Advance notificationsDismissPrunedSummaries to nextfood by removing the flag.

This flag has been in trunkfood full for over a month with no issues. It was incorrectly defined as a feature flag, which makes advancing to nextfood difficult.  Our options are to convert it to a new flag which we then need to roll out again, or to simply remove the flag and enable the code.  Since we have already ramped safely, it is safe to simply inline the flag.

Bug: 355967751
Flag: EXEMPT bugfix
Test: atest SystemUITests
Change-Id: I248a3f01eb3993b04ee6bb88f103671ffb6bb073
parent 01611f83
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -175,13 +175,6 @@ flag {
    bug: "308623704"
}

flag {
    name: "notifications_dismiss_pruned_summaries"
    namespace: "systemui"
    description: "NotifCollection.dismissNotifications will now dismiss summaries that are pruned from the shade."
    bug: "355967751"
}

flag {
   name: "notification_transparent_header_fix"
   namespace: "systemui"
+0 −1
Original line number Diff line number Diff line
@@ -1383,7 +1383,6 @@ public class NotifCollectionTest extends SysuiTestCase {
    }

    @Test
    @EnableFlags(Flags.FLAG_NOTIFICATIONS_DISMISS_PRUNED_SUMMARIES)
    public void testDismissNotificationsIncludesPrunedParents() {
        // GIVEN a collection with 2 groups; one has a single child, one has two.
        mCollection.addNotificationDismissInterceptor(mInterceptor1);
+1 −4
Original line number Diff line number Diff line
@@ -39,7 +39,6 @@ import static android.service.notification.NotificationListenerService.REASON_TI
import static android.service.notification.NotificationListenerService.REASON_UNAUTOBUNDLED;
import static android.service.notification.NotificationListenerService.REASON_USER_STOPPED;

import static com.android.systemui.Flags.notificationsDismissPrunedSummaries;
import static com.android.systemui.statusbar.notification.NotificationUtils.logKey;
import static com.android.systemui.statusbar.notification.collection.NotificationEntry.DismissState.DISMISSED;
import static com.android.systemui.statusbar.notification.collection.NotificationEntry.DismissState.NOT_DISMISSED;
@@ -278,9 +277,7 @@ public class NotifCollection implements Dumpable, PipelineDumpable {
        Assert.isMainThread();
        checkForReentrantCall();

        if (notificationsDismissPrunedSummaries()) {
        entriesToDismiss = includeSummariesToDismiss(entriesToDismiss);
        }

        final int entryCount = entriesToDismiss.size();
        final List<NotificationEntry> entriesToLocallyDismiss = new ArrayList<>();