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

Commit 0d7957f8 authored by davidct's avatar davidct Committed by David Thames
Browse files

Add aconfig flag for ViewPager2 in smartspace

Test: manually tested on device.
Bug: 259566300
Flag: com.android.systemui.smartspace_viewpager2
Change-Id: I808f91d07918366aa29872849530d050cb750ace
parent 43243dc4
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -598,6 +598,13 @@ flag {
   bug: "331451011"
}

flag {
    name: "smartspace_viewpager2"
    namespace: "systemui"
    description: "Use viewpager2 in Smartspace"
    bug: "259566300"
}

flag {
   name: "pin_input_field_styled_focus_state"
   namespace: "systemui"
+2 −0
Original line number Diff line number Diff line
@@ -21,4 +21,6 @@ package com.android.systemui.plugins
interface BcSmartspaceConfigPlugin {
    /** Gets default date/weather disabled status. */
    val isDefaultDateWeatherDisabled: Boolean
    /** Gets if Smartspace should use ViewPager2 */
    val isViewPager2Enabled: Boolean
}
+4 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.systemui.smartspace.config

import com.android.systemui.Flags.smartspaceViewpager2
import com.android.systemui.flags.FeatureFlags
import com.android.systemui.plugins.BcSmartspaceConfigPlugin

@@ -23,4 +24,7 @@ class BcSmartspaceConfigProvider(private val featureFlags: FeatureFlags) :
    BcSmartspaceConfigPlugin {
    override val isDefaultDateWeatherDisabled: Boolean
        get() = true

    override val isViewPager2Enabled: Boolean
        get() = smartspaceViewpager2()
}