Merge "Fix a crash on the lock screen wallet icon." into tm-dev

This commit is contained in:
TreeHugger Robot
2022-05-19 01:10:12 +00:00
committed by Android (Google) Code Review

View File

@@ -1195,10 +1195,10 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL
public void onWalletCardsRetrieved(@NonNull GetWalletCardsResponse response) { public void onWalletCardsRetrieved(@NonNull GetWalletCardsResponse response) {
mHasCard = !response.getWalletCards().isEmpty(); mHasCard = !response.getWalletCards().isEmpty();
Drawable tileIcon = mQuickAccessWalletController.getWalletClient().getTileIcon(); Drawable tileIcon = mQuickAccessWalletController.getWalletClient().getTileIcon();
if (tileIcon != null) {
mWalletButton.setImageDrawable(tileIcon);
}
post(() -> { post(() -> {
if (tileIcon != null) {
mWalletButton.setImageDrawable(tileIcon);
}
updateWalletVisibility(); updateWalletVisibility();
updateAffordanceColors(); updateAffordanceColors();
}); });