mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
Small update to match API changes
Change-Id: I1d6f38b80ca7874b158444b368537b35d29e2414
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user