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

Commit bd2dfd41 authored by Evan Laird's avatar Evan Laird
Browse files

[sb] make NewStatusBarIcons depend on StatusBarRootModernization

Test: sysui tests
Bug: 391606042
Flag: com.android.settingslib.flags.new_status_bar_icons
Flag: com.android.systemui.status_bar_root_modernization
Change-Id: I86272495b89124496040d864243edb591598b1e6
parent 3df02667
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -29,10 +29,10 @@ object NewStatusBarIcons {
    val token: FlagToken
        get() = FlagToken(FLAG_NAME, isEnabled)

    /** Is the refactor enabled */
    /** Is the refactor enabled. Dependency on [StatusBarRootModernization] */
    @JvmStatic
    inline val isEnabled
        get() = Flags.newStatusBarIcons()
        get() = Flags.newStatusBarIcons() && StatusBarRootModernization.isEnabled

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