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

Commit df8815f0 authored by Mady Mellor's avatar Mady Mellor Committed by Android (Google) Code Review
Browse files

Merge "WMShell: use the aconfig flag for bubble bar" into main

parents 1cb9201d 72843d50
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -17,18 +17,19 @@
package com.android.wm.shell.bubbles.properties

import android.os.SystemProperties
import com.android.wm.shell.Flags

/** Provides bubble properties in production. */
object ProdBubbleProperties : BubbleProperties {

    // TODO(b/256873975) Should use proper flag when available to shell/launcher
    private var _isBubbleBarEnabled =
    private var _isBubbleBarEnabled = Flags.enableBubbleBar() ||
            SystemProperties.getBoolean("persist.wm.debug.bubble_bar", false)

    override val isBubbleBarEnabled
        get() = _isBubbleBarEnabled

    override fun refresh() {
        _isBubbleBarEnabled = SystemProperties.getBoolean("persist.wm.debug.bubble_bar", false)
        _isBubbleBarEnabled = Flags.enableBubbleBar() ||
                SystemProperties.getBoolean("persist.wm.debug.bubble_bar", false)
    }
}