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

Commit 4aa0b3f2 authored by Brian Isganitis's avatar Brian Isganitis
Browse files

Disable taskbar EDU for tiny taskbar.

The tooltips are generally too large for phone mode, and since this is a
prototype, let's disable them when in tiny mode :)

Flag: com.android.wm.shell.enable_tiny_taskbar
Test: Manual
Bug: 341784466
Change-Id: I340485edf8bedc6b5d9501cb7c74b0864ae79630
parent e1eaefd5
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -81,7 +81,11 @@ open class TaskbarEduTooltipController(context: Context) :
    protected val activityContext: TaskbarActivityContext = ActivityContext.lookupContext(context)
    protected val activityContext: TaskbarActivityContext = ActivityContext.lookupContext(context)
    open val shouldShowSearchEdu = false
    open val shouldShowSearchEdu = false
    private val isTooltipEnabled: Boolean
    private val isTooltipEnabled: Boolean
        get() = !Utilities.isRunningInTestHarness() && !activityContext.isPhoneMode
        get() {
            return !Utilities.isRunningInTestHarness() &&
                !activityContext.isPhoneMode &&
                !activityContext.isTinyTaskbar
        }
    private val isOpen: Boolean
    private val isOpen: Boolean
        get() = tooltip?.isOpen ?: false
        get() = tooltip?.isOpen ?: false
    val isBeforeTooltipFeaturesStep: Boolean
    val isBeforeTooltipFeaturesStep: Boolean