Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e7ab2ee authored by Silin Huang's avatar Silin Huang
Browse files

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
parent c3b917ad
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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();
            post(() -> {
                if (tileIcon != null) {
                    mWalletButton.setImageDrawable(tileIcon);
                }
            post(() -> {
                updateWalletVisibility();
                updateAffordanceColors();
            });