diff options
Diffstat (limited to 'src/com/android/systemui/plugin/globalactions')
-rw-r--r-- | src/com/android/systemui/plugin/globalactions/wallet/WalletPanelViewController.java | 3 | ||||
-rw-r--r-- | src/com/android/systemui/plugin/globalactions/wallet/WalletView.java | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/systemui/plugin/globalactions/wallet/WalletPanelViewController.java b/src/com/android/systemui/plugin/globalactions/wallet/WalletPanelViewController.java index 5bf9082..22165d4 100644 --- a/src/com/android/systemui/plugin/globalactions/wallet/WalletPanelViewController.java +++ b/src/com/android/systemui/plugin/globalactions/wallet/WalletPanelViewController.java @@ -158,9 +158,10 @@ public class WalletPanelViewController implements mHasRegisteredListener = true; } if (mIsDeviceLocked && !mWalletClient.isWalletFeatureAvailableWhenDeviceLocked()) { - mWalletView.showDeviceLockedMessage(); + mWalletView.hide(); return; } + mWalletView.show(); mWalletView.hideErrorMessage(); int cardWidthPx = mWalletCardCarousel.getCardWidthPx(); int cardHeightPx = mWalletCardCarousel.getCardHeightPx(); diff --git a/src/com/android/systemui/plugin/globalactions/wallet/WalletView.java b/src/com/android/systemui/plugin/globalactions/wallet/WalletView.java index df74fbf..a0231ec 100644 --- a/src/com/android/systemui/plugin/globalactions/wallet/WalletView.java +++ b/src/com/android/systemui/plugin/globalactions/wallet/WalletView.java @@ -205,6 +205,10 @@ class WalletView extends FrameLayout implements WalletCardCarousel.OnCardScrollL setVisibility(GONE); } + void show() { + setVisibility(VISIBLE); + } + void hideErrorMessage() { mErrorView.setVisibility(GONE); } |