summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-07-07 16:28:03 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-07-07 16:28:03 -0700
commit4a6d113ba0f33ce5dc14e59463e928ba309e1c2e (patch)
tree88f449d830ec3048957f6a8f737dd2b9504a2419 /packages
parentd015327223e1b333d479e69db64f512a0fe7b6e0 (diff)
parent4917b0dca8c5de7d4694e015a8796f6ed19a94a8 (diff)
downloadframeworks_base-4a6d113ba0f33ce5dc14e59463e928ba309e1c2e.zip
frameworks_base-4a6d113ba0f33ce5dc14e59463e928ba309e1c2e.tar.gz
frameworks_base-4a6d113ba0f33ce5dc14e59463e928ba309e1c2e.tar.bz2
Merge "Handling Resources.NotFoundException in Recents"
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
index 408436a..6190c9b 100644
--- a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
+++ b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
@@ -318,7 +318,11 @@ public class RecentsPanelView extends RelativeLayout
}
private Drawable getFullResIcon(Resources resources, int iconId) {
- return resources.getDrawableForDensity(iconId, mIconDpi);
+ try {
+ return resources.getDrawableForDensity(iconId, mIconDpi);
+ } catch (Resources.NotFoundException e) {
+ return getFullResDefaultActivityIcon();
+ }
}
private Drawable getFullResIcon(ResolveInfo info, PackageManager packageManager) {