Widget resizing obeys minResizeWidth/Height

Change-Id: I42c8fa118b4d45ce88b4f2b724643bf471d62cd2
This commit is contained in:
Adam Cohen
2011-07-19 16:32:15 -07:00
parent f5e078c670
commit 9efd4a2a36

View File

@@ -77,7 +77,7 @@ public class AppWidgetResizeFrame extends FrameLayout {
mWorkspace = (Workspace) dragLayer.findViewById(R.id.workspace);
final AppWidgetProviderInfo info = widgetView.getAppWidgetInfo();
int[] result = mCellLayout.rectToCell(info.minWidth, info.minHeight, null);
int[] result = mCellLayout.rectToCell(info.minResizeWidth, info.minResizeHeight, null);
mMinHSpan = result[0];
mMinVSpan = result[1];