mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
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
This commit is contained in:
@@ -81,7 +81,11 @@ open class TaskbarEduTooltipController(context: Context) :
|
||||
protected val activityContext: TaskbarActivityContext = ActivityContext.lookupContext(context)
|
||||
open val shouldShowSearchEdu = false
|
||||
private val isTooltipEnabled: Boolean
|
||||
get() = !Utilities.isRunningInTestHarness() && !activityContext.isPhoneMode
|
||||
get() {
|
||||
return !Utilities.isRunningInTestHarness() &&
|
||||
!activityContext.isPhoneMode &&
|
||||
!activityContext.isTinyTaskbar
|
||||
}
|
||||
private val isOpen: Boolean
|
||||
get() = tooltip?.isOpen ?: false
|
||||
val isBeforeTooltipFeaturesStep: Boolean
|
||||
|
||||
Reference in New Issue
Block a user