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

Commit 32b87237 authored by David Thames's avatar David Thames Committed by Android (Google) Code Review
Browse files

Merge "Add aconfig flag for ViewPager2 in smartspace" into main

parents 6c4f8e37 0d7957f8
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -650,6 +650,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()
}