diff options
| author | 2023-05-26 18:53:28 +0000 | |
|---|---|---|
| committer | 2023-05-26 18:53:28 +0000 | |
| commit | 37afcf784f717c93f2f9392484e985cfe1e05f38 (patch) | |
| tree | de7a761e703ab8544a07dccf5ebf3102300279d8 | |
| parent | c677fb387e3614532f52b6fcac53cff752a7f0d0 (diff) | |
| parent | ed2f66c600d000f50a5dd961475a5b1ca4dd452b (diff) | |
Merge "Remove ability for user to open wallet directly within shortcuts disabled dialog" into udc-dev am: ed2f66c600
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23450518
Change-Id: Ibcee0526018bd1e87e51ccde0c750fb571e3e88d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/QuickAccessWalletKeyguardQuickAffordanceConfig.kt | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/QuickAccessWalletKeyguardQuickAffordanceConfig.kt b/packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/QuickAccessWalletKeyguardQuickAffordanceConfig.kt index 4ba2eb913742..12270784adca 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/QuickAccessWalletKeyguardQuickAffordanceConfig.kt +++ b/packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/QuickAccessWalletKeyguardQuickAffordanceConfig.kt @@ -18,7 +18,6 @@ package com.android.systemui.keyguard.data.quickaffordance import android.content.Context -import android.content.Intent import android.graphics.drawable.Drawable import android.service.quickaccesswallet.GetWalletCardsError import android.service.quickaccesswallet.GetWalletCardsResponse @@ -33,7 +32,6 @@ import com.android.systemui.common.shared.model.ContentDescription import com.android.systemui.common.shared.model.Icon import com.android.systemui.dagger.SysUISingleton import com.android.systemui.dagger.qualifiers.Application -import com.android.systemui.keyguard.data.quickaffordance.KeyguardQuickAffordanceConfig.Companion.componentName import com.android.systemui.plugins.ActivityStarter import com.android.systemui.wallet.controller.QuickAccessWalletController import javax.inject.Inject @@ -103,17 +101,6 @@ constructor( !walletController.walletClient.isWalletServiceAvailable -> KeyguardQuickAffordanceConfig.PickerScreenState.UnavailableOnDevice !walletController.isWalletEnabled || queryCards().isEmpty() -> { - val componentName = - walletController.walletClient.createWalletSettingsIntent().toComponentName() - val actionText = - if (componentName != null) { - context.getString( - R.string.keyguard_affordance_enablement_dialog_action_template, - pickerName, - ) - } else { - null - } KeyguardQuickAffordanceConfig.PickerScreenState.Disabled( instructions = listOf( @@ -124,8 +111,6 @@ constructor( R.string.keyguard_affordance_enablement_dialog_wallet_instruction_2 ), ), - actionText = actionText, - actionComponentName = componentName, ) } else -> KeyguardQuickAffordanceConfig.PickerScreenState.Default() @@ -182,14 +167,6 @@ constructor( } } - private fun Intent?.toComponentName(): String? { - if (this == null) { - return null - } - - return componentName(packageName = `package`, action = action) - } - companion object { private const val TAG = "QuickAccessWalletKeyguardQuickAffordanceConfig" } |