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

Commit 72843d50 authored by Mady Mellor's avatar Mady Mellor
Browse files

WMShell: use the aconfig flag for bubble bar

Test: make & enable / disable the flag to see if it works
      adb shell device_config put multitasking
          com.android.wm.shell.enable_bubble_bar true
Test: PlatformScenarioTests:
      android.platform.test.scenario.sysui.bubble.BubbleBarTest
Bug: 286246694
Change-Id: I832b452164f565758827e8ef29b5ccffdbb4f41d
parent 3459cd0e
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)
    }
}