summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2011-09-13 15:01:58 -0700
committerAdam Cohen <adamcohen@google.com>2011-09-13 15:01:58 -0700
commit61dcf3759fd00ad111ffe2c4a6168b4d000d7126 (patch)
treeaf3716367056036a059a65d9b30b3ed114029691 /src
parent7842d7fc78eebfb2b7cbad23adf11f7b6d923f79 (diff)
downloadandroid_packages_apps_Trebuchet-61dcf3759fd00ad111ffe2c4a6168b4d000d7126.tar.gz
android_packages_apps_Trebuchet-61dcf3759fd00ad111ffe2c4a6168b4d000d7126.tar.bz2
android_packages_apps_Trebuchet-61dcf3759fd00ad111ffe2c4a6168b4d000d7126.zip
Fixing regression with widget sizes
Change-Id: Id013ceaaf08ce2bfddd997b49843384082bc6834
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/AppsCustomizePagedView.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/launcher2/AppsCustomizePagedView.java b/src/com/android/launcher2/AppsCustomizePagedView.java
index dd040394f..9512e245f 100644
--- a/src/com/android/launcher2/AppsCustomizePagedView.java
+++ b/src/com/android/launcher2/AppsCustomizePagedView.java
@@ -1022,8 +1022,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
// Fill in the widget information
AppWidgetProviderInfo info = (AppWidgetProviderInfo) rawInfo;
createItemInfo = new PendingAddWidgetInfo(info, null, null);
- int[] cellSpans = CellLayout.rectToCell(getResources(),
- info.minWidth, info.minHeight, null);
+ int[] cellSpans = mLauncher.getSpanForWidget(info, null);
FastBitmapDrawable preview = new FastBitmapDrawable(data.generatedImages.get(i));
widget.applyFromAppWidgetProviderInfo(info, preview, -1, cellSpans,
mHolographicOutlineHelper);