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

Commit 47200aa6 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[SB] Remove StatusBarNoHunBehavior's dependency on app icons in notifs.

StatusBarNoHunBehavior is dependent on notificationsRedesignAppIcons from a product perspective (if we don't do app icons in notifications, then we shouldn't remove the HUN behavior) but eng-wise it's fine for them to be on separately. And this means we don't have to enable both flags for every single unit test (see fixed bug).

Fixes: 390196278
Bug: 385740230
Flag: com.android.systemui.status_bar_no_hun_behavior

Test: atest HomeStatusBarViewModelTest HeadsUpAppearanceControllerTest
CollapsedStatusBarFragmentTest

Change-Id: I10f54bd401c02dc8ac6950888dd898183e936dfd
parent 46d15f86
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ object StatusBarNoHunBehavior {
    /** Is the refactor enabled */
    @JvmStatic
    inline val isEnabled
        get() = Flags.statusBarNoHunBehavior() && android.app.Flags.notificationsRedesignAppIcons()
        get() = Flags.statusBarNoHunBehavior()

    /**
     * Called to ensure code is only run when the flag is enabled. This protects users from the