diff options
author | Adam Cohen <adamcohen@google.com> | 2011-09-13 15:01:58 -0700 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2011-09-13 15:01:58 -0700 |
commit | 61dcf3759fd00ad111ffe2c4a6168b4d000d7126 (patch) | |
tree | af3716367056036a059a65d9b30b3ed114029691 /src | |
parent | 7842d7fc78eebfb2b7cbad23adf11f7b6d923f79 (diff) | |
download | android_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.java | 3 |
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); |