diff options
author | Jon Miranda <jonmiranda@google.com> | 2016-12-15 11:24:18 -0800 |
---|---|---|
committer | Jon Miranda <jonmiranda@google.com> | 2016-12-15 11:26:43 -0800 |
commit | 6f6a06ac470df4f58a6eea902b79a8813c44c8f7 (patch) | |
tree | 1dda44596a89f2b3a748b5dc9b168a43314cec70 /src/com/android/launcher3/CellLayout.java | |
parent | e96798e885e3ac97b6de0a1c598eb09cf62349af (diff) | |
download | android_packages_apps_Trebuchet-6f6a06ac470df4f58a6eea902b79a8813c44c8f7.tar.gz android_packages_apps_Trebuchet-6f6a06ac470df4f58a6eea902b79a8813c44c8f7.tar.bz2 android_packages_apps_Trebuchet-6f6a06ac470df4f58a6eea902b79a8813c44c8f7.zip |
Restore original scaleRectAboutCenter method.
Change-Id: Ibb49c56aab29d1223a0ab36476a32d565566eb25
Diffstat (limited to 'src/com/android/launcher3/CellLayout.java')
-rw-r--r-- | src/com/android/launcher3/CellLayout.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/launcher3/CellLayout.java b/src/com/android/launcher3/CellLayout.java index 2eed26492..11273fab6 100644 --- a/src/com/android/launcher3/CellLayout.java +++ b/src/com/android/launcher3/CellLayout.java @@ -1029,8 +1029,7 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler { cellToRect(cellX, cellY, spanX, spanY, r); if (v instanceof LauncherAppWidgetHostView) { DeviceProfile profile = mLauncher.getDeviceProfile(); - Utilities.shrinkRectAboutCenter(r, profile.appWidgetScale.x, - profile.appWidgetScale.y); + Utilities.shrinkRect(r, profile.appWidgetScale.x, profile.appWidgetScale.y); } } else { // Find the top left corner of the rect the object will occupy @@ -1070,7 +1069,7 @@ public class CellLayout extends ViewGroup implements BubbleTextShadowHandler { r.set(left, top, left + dragOutline.getWidth(), top + dragOutline.getHeight()); } - Utilities.shrinkRectAboutCenter(r, mChildScale, mChildScale); + Utilities.scaleRectAboutCenter(r, mChildScale); mDragOutlineAnims[mDragOutlineCurrent].setTag(dragOutline); mDragOutlineAnims[mDragOutlineCurrent].animateIn(); |