diff options
author | Adam Cohen <adamcohen@google.com> | 2012-05-22 16:50:35 -0700 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2012-05-22 16:53:10 -0700 |
commit | 7bdfc9700b1cad043c04c757f134db1bf3df00da (patch) | |
tree | 4afe3ecfcd7d6cd76e8432ed8f00a6269512e33f /src/com/android/launcher2/Workspace.java | |
parent | be4f1471152ef1377ca7387b1ae0e9ee2ab108c4 (diff) | |
download | android_packages_apps_Trebuchet-7bdfc9700b1cad043c04c757f134db1bf3df00da.tar.gz android_packages_apps_Trebuchet-7bdfc9700b1cad043c04c757f134db1bf3df00da.tar.bz2 android_packages_apps_Trebuchet-7bdfc9700b1cad043c04c757f134db1bf3df00da.zip |
Fix a couple small bugs (issue 6539339)
-> Adjusting the character of the 'shake' animation to keep
a single phase, and instead stagger the animations slightly
-> Fixing issue where widget is not given the size change callback
if the widget is resized on drop
Change-Id: I9cd9e6cd39009d9e5c70e745812b6ece71b845ee
Diffstat (limited to 'src/com/android/launcher2/Workspace.java')
-rw-r--r-- | src/com/android/launcher2/Workspace.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index 905ad8a89..047c16c71 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java @@ -2194,6 +2194,9 @@ public class Workspace extends SmoothPagedView resizeOnDrop = true; item.spanX = resultSpan[0]; item.spanY = resultSpan[1]; + AppWidgetHostView awhv = (AppWidgetHostView) cell; + AppWidgetResizeFrame.updateWidgetSizeRanges(awhv, mLauncher, resultSpan[0], + resultSpan[1]); } if (mCurrentPage != screen && !hasMovedIntoHotseat) { |