Merge "Small update to match API changes"

This commit is contained in:
Adam Cohen
2011-02-28 15:25:00 -08:00
committed by Android (Google) Code Review
3 changed files with 2 additions and 6 deletions
@@ -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);
@@ -122,8 +122,4 @@ public class LauncherAppWidgetHostView extends AppWidgetHostView
}
super.onVisibilityChanged(changedView, visibility);
}
public int getResizableMode() {
return getAppWidgetInfo().resizableMode;
}
}
+1 -1
View File
@@ -2303,7 +2303,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,