Merge "Fix a crash on the lock screen wallet icon." into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
334d03f4b6
@@ -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();
|
||||||
|
post(() -> {
|
||||||
if (tileIcon != null) {
|
if (tileIcon != null) {
|
||||||
mWalletButton.setImageDrawable(tileIcon);
|
mWalletButton.setImageDrawable(tileIcon);
|
||||||
}
|
}
|
||||||
post(() -> {
|
|
||||||
updateWalletVisibility();
|
updateWalletVisibility();
|
||||||
updateAffordanceColors();
|
updateAffordanceColors();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user