Fix http://b/2248037 (crash in LW picker).
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 @@
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;
}