summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2011-02-28 22:45:11 (GMT)
committerAdam Cohen <adamcohen@google.com>2011-02-28 22:45:11 (GMT)
commit27c09b05d3ed2a4ce9d53140216aba998727a569 (patch)
tree2efb69e8c9946a94dccff22b302d78438c4138a4
parent60b753b4cfa709efa55e05cdcd62a993330f3684 (diff)
downloadandroid_packages_apps_Trebuchet-27c09b05d3ed2a4ce9d53140216aba998727a569.zip
android_packages_apps_Trebuchet-27c09b05d3ed2a4ce9d53140216aba998727a569.tar.gz
android_packages_apps_Trebuchet-27c09b05d3ed2a4ce9d53140216aba998727a569.tar.bz2
Small update to match API changes
Change-Id: I1d6f38b80ca7874b158444b368537b35d29e2414
-rw-r--r--src/com/android/launcher2/AppWidgetResizeFrame.java2
-rw-r--r--src/com/android/launcher2/LauncherAppWidgetHostView.java4
-rw-r--r--src/com/android/launcher2/Workspace.java2
3 files changed, 2 insertions, 6 deletions
diff --git a/src/com/android/launcher2/AppWidgetResizeFrame.java b/src/com/android/launcher2/AppWidgetResizeFrame.java
index 6ddb5b8..d17bc5a 100644
--- a/src/com/android/launcher2/AppWidgetResizeFrame.java
+++ b/src/com/android/launcher2/AppWidgetResizeFrame.java
@@ -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);
diff --git a/src/com/android/launcher2/LauncherAppWidgetHostView.java b/src/com/android/launcher2/LauncherAppWidgetHostView.java
index 7c5de85..7f60cac 100644
--- a/src/com/android/launcher2/LauncherAppWidgetHostView.java
+++ b/src/com/android/launcher2/LauncherAppWidgetHostView.java
@@ -122,8 +122,4 @@ public class LauncherAppWidgetHostView extends AppWidgetHostView
}
super.onVisibilityChanged(changedView, visibility);
}
-
- public int getResizableMode() {
- return getAppWidgetInfo().resizableMode;
- }
}
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java
index 699f2b4..270cd7a 100644
--- a/src/com/android/launcher2/Workspace.java
+++ b/src/com/android/launcher2/Workspace.java
@@ -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,