summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-07-07 15:42:30 -0700
committerMichael Jurka <mikejurka@google.com>2011-07-07 15:42:35 -0700
commit4917b0dca8c5de7d4694e015a8796f6ed19a94a8 (patch)
tree9ad3868207be4975128e9a0a61021c53643649d0 /packages
parent6f2e4d1021fc5f453c025ec00a17bbb071b6e7f5 (diff)
downloadframeworks_base-4917b0dca8c5de7d4694e015a8796f6ed19a94a8.zip
frameworks_base-4917b0dca8c5de7d4694e015a8796f6ed19a94a8.tar.gz
frameworks_base-4917b0dca8c5de7d4694e015a8796f6ed19a94a8.tar.bz2
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) {