Small update to match API changes
Change-Id: I1d6f38b80ca7874b158444b368537b35d29e2414
This commit is contained in:
parent
60b753b4cf
commit
27c09b05d3
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue