Fix a crash on the lock screen wallet icon.
Setting image drawable on the wallet button should be in UI thread. Test: manual Bug: 232969910 Change-Id: If25ef2270845074b122245be3a45f8e5080356ce
This commit is contained in:
@@ -1195,10 +1195,10 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL
|
||||
public void onWalletCardsRetrieved(@NonNull GetWalletCardsResponse response) {
|
||||
mHasCard = !response.getWalletCards().isEmpty();
|
||||
Drawable tileIcon = mQuickAccessWalletController.getWalletClient().getTileIcon();
|
||||
if (tileIcon != null) {
|
||||
mWalletButton.setImageDrawable(tileIcon);
|
||||
}
|
||||
post(() -> {
|
||||
if (tileIcon != null) {
|
||||
mWalletButton.setImageDrawable(tileIcon);
|
||||
}
|
||||
updateWalletVisibility();
|
||||
updateAffordanceColors();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user