summaryrefslogtreecommitdiff
path: root/src/com/android/systemui/plugin/globalactions/wallet/WalletPanelViewController.java
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 01:09:46 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 01:09:46 +0000
commited435bb9a47e907c2e6d7d1af31b452c166482ec (patch)
treec3413969f0c0ae99a131887b4aa84a7f3fd49069 /src/com/android/systemui/plugin/globalactions/wallet/WalletPanelViewController.java
parent53e6d439d5591f4dbac26ab225af7f9c1b38f451 (diff)
parent6bd66c73aeb2249c21f38f35e37e430b897480e0 (diff)
downloadQuickAccessWallet-ed435bb9a47e907c2e6d7d1af31b452c166482ec.tar.gz
Change-Id: I89e984c2968b86fee5ed9113ca3675450af79dd1
Diffstat (limited to 'src/com/android/systemui/plugin/globalactions/wallet/WalletPanelViewController.java')
-rw-r--r--src/com/android/systemui/plugin/globalactions/wallet/WalletPanelViewController.java10
1 files changed, 9 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 22165d4..4e9ce4f 100644
--- a/src/com/android/systemui/plugin/globalactions/wallet/WalletPanelViewController.java
+++ b/src/com/android/systemui/plugin/globalactions/wallet/WalletPanelViewController.java
@@ -24,6 +24,7 @@ import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.Icon;
import android.os.Handler;
+import android.os.UserHandle;
import android.os.Looper;
import android.service.quickaccesswallet.GetWalletCardsError;
import android.service.quickaccesswallet.GetWalletCardsRequest;
@@ -361,7 +362,14 @@ public class WalletPanelViewController implements
*/
QAWalletCardViewInfo(WalletCard walletCard) {
mWalletCard = walletCard;
- mCardDrawable = mWalletCard.getCardImage().loadDrawable(mPluginContext);
+ Icon cardImage = mWalletCard.getCardImage();
+ if (cardImage.getType() == Icon.TYPE_URI) {
+ // Do not allow icon created with content URI.
+ mCardDrawable = null;
+ } else {
+ mCardDrawable =
+ mWalletCard.getCardImage().loadDrawable(mPluginContext);
+ }
Icon icon = mWalletCard.getCardIcon();
mIconDrawable = icon == null ? null : icon.loadDrawable(mPluginContext);
}