summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@google.com>2009-11-19 15:01:50 -0500
committerDaniel Sandler <dsandler@google.com>2009-11-19 15:01:50 -0500
commit05350395718b53bb827e7a0c03715c744d42ac3a (patch)
treef4bf45dfc11090d8ebf601ff00bb5825dc97220a
parent0dffdc7ea90919e1c449f5832e952a5ab140ddf8 (diff)
downloadandroid_packages_wallpapers_LivePicker-05350395718b53bb827e7a0c03715c744d42ac3a.zip
android_packages_wallpapers_LivePicker-05350395718b53bb827e7a0c03715c744d42ac3a.tar.gz
android_packages_wallpapers_LivePicker-05350395718b53bb827e7a0c03715c744d42ac3a.tar.bz2
Fix http://b/2248037 (crash in LW picker).
-rw-r--r--src/com/android/wallpaper/livepicker/LiveWallpaperListActivity.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/android/wallpaper/livepicker/LiveWallpaperListActivity.java b/src/com/android/wallpaper/livepicker/LiveWallpaperListActivity.java
index 44abac9..8b0ad89 100644
--- a/src/com/android/wallpaper/livepicker/LiveWallpaperListActivity.java
+++ b/src/com/android/wallpaper/livepicker/LiveWallpaperListActivity.java
@@ -222,8 +222,13 @@ public class LiveWallpaperListActivity extends ListActivity implements AdapterVi
holder.thumbnail.setImageDrawable(mThumbnails.get(position));
// author not currently used
holder.titleAuthor.setText(info.loadLabel(mPackageManager));
- holder.description.setText(Html.fromHtml(
- info.loadDescription(mPackageManager).toString()));
+ try {
+ holder.description.setVisibility(View.VISIBLE);
+ holder.description.setText(Html.fromHtml(
+ info.loadDescription(mPackageManager).toString()));
+ } catch (Resources.NotFoundException e) {
+ holder.description.setVisibility(View.GONE);
+ }
return convertView;
}