summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/PagedViewWidget.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-05-09 16:00:53 -0700
committerWinson Chung <winsonc@google.com>2011-05-12 10:40:25 -0700
commit46af2e89164b391b7a0049c6ce9048a2b7a7f644 (patch)
treeb9b241e12baf8cda73cb0e636c750d9dcf8f4f53 /src/com/android/launcher2/PagedViewWidget.java
parent95963d614eac0dd67fd70e774c4c83b7eb676b3b (diff)
downloadandroid_packages_apps_Trebuchet-46af2e89164b391b7a0049c6ce9048a2b7a7f644.tar.gz
android_packages_apps_Trebuchet-46af2e89164b391b7a0049c6ce9048a2b7a7f644.tar.bz2
android_packages_apps_Trebuchet-46af2e89164b391b7a0049c6ce9048a2b7a7f644.zip
Adding Wallpapers tab.
Change-Id: Ic42bec30a4a3a4f8745bd1b5b164f33cc9a6c96f
Diffstat (limited to 'src/com/android/launcher2/PagedViewWidget.java')
-rw-r--r--src/com/android/launcher2/PagedViewWidget.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/launcher2/PagedViewWidget.java b/src/com/android/launcher2/PagedViewWidget.java
index 41473c336..6492888ce 100644
--- a/src/com/android/launcher2/PagedViewWidget.java
+++ b/src/com/android/launcher2/PagedViewWidget.java
@@ -211,8 +211,10 @@ public class PagedViewWidget extends LinearLayout implements Checkable {
name.setText(info.loadLabel(pm));
name.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
final TextView dims = (TextView) findViewById(R.id.widget_dims);
- dims.setText(String.format(mDimensionsFormatString, 1, 1));
- dims.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
+ if (dims != null) {
+ dims.setText(String.format(mDimensionsFormatString, 1, 1));
+ dims.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
+ }
if (createHolographicOutline) {
mIconCache = cache;