diff options
author | Adam Cohen <adamcohen@google.com> | 2011-03-11 15:29:03 -0800 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2011-03-14 12:16:52 -0700 |
commit | 6788269814a678af976dfc7d6135993e172ce586 (patch) | |
tree | 111f6fdf283c1896d20deb0e95ece7fda9c1d7f6 /src/com/android/launcher2/Workspace.java | |
parent | 5a0d66c36e69a3b4e5deb800750efe64163f0264 (diff) | |
download | android_packages_apps_Trebuchet-6788269814a678af976dfc7d6135993e172ce586.tar.gz android_packages_apps_Trebuchet-6788269814a678af976dfc7d6135993e172ce586.tar.bz2 android_packages_apps_Trebuchet-6788269814a678af976dfc7d6135993e172ce586.zip |
Fixing widget resize visual / ux ugliness, Bug: 4082591
Change-Id: Ib258e02f52dd83418db0c0249efdc90d2424f059
Diffstat (limited to 'src/com/android/launcher2/Workspace.java')
-rw-r--r-- | src/com/android/launcher2/Workspace.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index e7865d26f..b5c1074ab 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java @@ -1800,8 +1800,8 @@ public class Workspace extends SmoothPagedView } public void exitWidgetResizeMode() { - final CellLayout currentLayout = (CellLayout) getChildAt(getCurrentPage()); - currentLayout.getChildrenLayout().clearAllResizeFrames(); + DragLayer dragLayer = (DragLayer) mLauncher.findViewById(R.id.drag_layer); + dragLayer.clearAllResizeFrames(); } void unshrink(boolean animated) { @@ -2353,7 +2353,6 @@ public class Workspace extends SmoothPagedView mTargetCell[0], mTargetCell[1], mDragInfo.spanX, mDragInfo.spanY)); if (cell instanceof LauncherAppWidgetHostView) { - final CellLayoutChildren children = dropTargetLayout.getChildrenLayout(); final CellLayout cellLayout = dropTargetLayout; // We post this call so that the widget has a chance to be placed // in its final location @@ -2363,7 +2362,9 @@ public class Workspace extends SmoothPagedView if (pinfo.resizeMode != AppWidgetProviderInfo.RESIZE_NONE) { post(new Runnable() { public void run() { - children.addResizeFrame(info, hostView, + DragLayer dragLayer = (DragLayer) + mLauncher.findViewById(R.id.drag_layer); + dragLayer.addResizeFrame(info, hostView, cellLayout); } }); |