summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/PagedViewWidget.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-04-27 17:40:20 -0700
committerWinson Chung <winsonc@google.com>2011-04-28 14:53:51 -0700
commit4b576be59e58072cc03b5a8d36afb6a322513575 (patch)
tree4bb56e5ca8dfc2438bf71739a32a24d7687021bf /src/com/android/launcher2/PagedViewWidget.java
parent9e87bd8ee7bcd900bce27784a42fecd878016090 (diff)
downloadandroid_packages_apps_Trebuchet-4b576be59e58072cc03b5a8d36afb6a322513575.tar.gz
android_packages_apps_Trebuchet-4b576be59e58072cc03b5a8d36afb6a322513575.tar.bz2
android_packages_apps_Trebuchet-4b576be59e58072cc03b5a8d36afb6a322513575.zip
Adding back the widgets pane to the merged AllApps.
- Fixing issue with holographic drag outlines being drawn offset Change-Id: Ie0e89d76ce6714b44f9cd2ddf99ad608b51bf005
Diffstat (limited to 'src/com/android/launcher2/PagedViewWidget.java')
-rw-r--r--src/com/android/launcher2/PagedViewWidget.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher2/PagedViewWidget.java b/src/com/android/launcher2/PagedViewWidget.java
index 2dcceaea0..14ac9aee1 100644
--- a/src/com/android/launcher2/PagedViewWidget.java
+++ b/src/com/android/launcher2/PagedViewWidget.java
@@ -180,7 +180,9 @@ public class PagedViewWidget extends LinearLayout implements Checkable {
FastBitmapDrawable preview, int maxWidth, int[] cellSpan,
PagedViewIconCache cache, boolean createHolographicOutline) {
final ImageView image = (ImageView) findViewById(R.id.widget_preview);
- image.setMaxWidth(maxWidth);
+ if (maxWidth > -1) {
+ image.setMaxWidth(maxWidth);
+ }
image.setImageDrawable(preview);
mPreviewImageView = image;
final TextView name = (TextView) findViewById(R.id.widget_name);