Small update to match API changes

Change-Id: I1d6f38b80ca7874b158444b368537b35d29e2414
This commit is contained in:
Adam Cohen 2011-02-28 14:45:11 -08:00
parent 60b753b4cf
commit 27c09b05d3
3 changed files with 2 additions and 6 deletions

View File

@ -55,7 +55,7 @@ public class AppWidgetResizeFrame extends FrameLayout {
mItemInfo = itemInfo;
mCellLayout = cellLayout;
mWidgetView = widgetView;
mResizeMode = widgetView.getAppWidgetInfo().resizableMode;
mResizeMode = widgetView.getAppWidgetInfo().resizeMode;
final AppWidgetProviderInfo info = widgetView.getAppWidgetInfo();
int[] result = mCellLayout.rectToCell(info.minWidth, info.minHeight, null);

View File

@ -122,8 +122,4 @@ public class LauncherAppWidgetHostView extends AppWidgetHostView
}
super.onVisibilityChanged(changedView, visibility);
}
public int getResizableMode() {
return getAppWidgetInfo().resizableMode;
}
}

View File

@ -2299,7 +2299,7 @@ public class Workspace extends SmoothPagedView
final LauncherAppWidgetHostView hostView = (LauncherAppWidgetHostView) cell;
AppWidgetProviderInfo pinfo = hostView.getAppWidgetInfo();
if (pinfo.resizableMode != AppWidgetProviderInfo.RESIZE_NONE) {
if (pinfo.resizeMode != AppWidgetProviderInfo.RESIZE_NONE) {
post(new Runnable() {
public void run() {
children.addResizeFrame(info, hostView,