summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin Li <delphij@google.com>2023-10-05 15:41:47 -0700
committerXin Li <delphij@google.com>2023-10-05 15:41:47 -0700
commitf4ffd6795bc6c431222c639f368e299ea781364b (patch)
treec81a30e723cba974be98d9840b8f570e468d0e1e
parentef299dd617ac9f3bdc4fa8e2866594454adfcd6b (diff)
parent13b22943c80f8f1e668dbf93b732b59f96a1653a (diff)
downloadQuickAccessWallet-f4ffd6795bc6c431222c639f368e299ea781364b.tar.gz
Merge Android 14
Bug: 298295554 Merged-In: I0287e9dfc3217de66e80e4d09327393358737d42 Change-Id: I98546eb81c8ba05cc11eed258ed5642ac4ac44cd
-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);
}