summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@google.com>2009-11-20 08:36:59 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2009-11-20 08:36:59 -0800
commitfdefa0d20ecb242cc0bcc2745c835cd85b9dc220 (patch)
tree2178be6dd49f532905b0aef420d4d160adc7ecb4
parent0bcaaed0b425633d9bc5f88ce9fd5b148ef48831 (diff)
parent2b8b76db2b2e8ca1fd613af6d10d4cdf79cb9174 (diff)
downloadandroid_packages_wallpapers_LivePicker-fdefa0d20ecb242cc0bcc2745c835cd85b9dc220.zip
android_packages_wallpapers_LivePicker-fdefa0d20ecb242cc0bcc2745c835cd85b9dc220.tar.gz
android_packages_wallpapers_LivePicker-fdefa0d20ecb242cc0bcc2745c835cd85b9dc220.tar.bz2
am 2b8b76db: am 4854f732: Merge change I05350395 into eclair
Merge commit '2b8b76db2b2e8ca1fd613af6d10d4cdf79cb9174' * commit '2b8b76db2b2e8ca1fd613af6d10d4cdf79cb9174': 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;
}