Update wallet/controls QS tile positions

For priority placement (users upgrading), slightly move the tiles down
to positions 3/4 from 2/3 (0-based index). For new users of controls,
make sure it appears on the first page of tiles.

Fixes: 190717521
Test: atest WalletControllerImplTest DeviceControlsImplTest
Change-Id: I6a273c38b267e5cdba79b2262f0870a6bc3e5eba
This commit is contained in:
Matt Pietal
2021-06-11 09:55:01 -04:00
parent d8254cd71e
commit 7d8f0283c0
2 changed files with 3 additions and 4 deletions

View File

@@ -27,7 +27,6 @@ import com.android.systemui.controls.ControlsServiceInfo
import com.android.systemui.controls.dagger.ControlsComponent
import com.android.systemui.controls.management.ControlsListingController
import com.android.systemui.dagger.SysUISingleton
import com.android.systemui.qs.QSTileHost.POSITION_AT_END
import com.android.systemui.settings.UserContextProvider
import com.android.systemui.statusbar.policy.DeviceControlsController.Callback
import com.android.systemui.util.settings.SecureSettings
@@ -64,8 +63,8 @@ public class DeviceControlsControllerImpl @Inject constructor(
companion object {
private const val TAG = "DeviceControlsControllerImpl"
internal const val QS_PRIORITY_POSITION = 2
internal const val QS_DEFAULT_POSITION = POSITION_AT_END
internal const val QS_PRIORITY_POSITION = 3
internal const val QS_DEFAULT_POSITION = 7
internal const val PREFS_CONTROLS_SEEDING_COMPLETED = "SeedingCompleted"
internal const val PREFS_CONTROLS_FILE = "controls_prefs"

View File

@@ -33,7 +33,7 @@ public class WalletControllerImpl @Inject constructor(
companion object {
private const val TAG = "WalletControllerImpl"
internal const val QS_PRIORITY_POSITION = 2
internal const val QS_PRIORITY_POSITION = 3
}
/**