diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2016-11-20 15:26:01 +0530 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2016-11-20 15:26:26 +0530 |
commit | aa8a871e337fe42e9339b96833eaf37bf2b64b2f (patch) | |
tree | 67e6a432b4c980d5f929b6dc68b1fd9289b97909 /src/com/android/launcher3/AppWidgetResizeFrame.java | |
parent | db2fa049a61e22c16fa63f5390ab5b67f492f004 (diff) | |
download | android_packages_apps_Trebuchet-aa8a871e337fe42e9339b96833eaf37bf2b64b2f.tar.gz android_packages_apps_Trebuchet-aa8a871e337fe42e9339b96833eaf37bf2b64b2f.tar.bz2 android_packages_apps_Trebuchet-aa8a871e337fe42e9339b96833eaf37bf2b64b2f.zip |
Removing widgetGap and heightGap from cellLayout
This values are always set to 0
Change-Id: Ic317efdc65baa22e915f4766c60c67c116bb94a8
Diffstat (limited to 'src/com/android/launcher3/AppWidgetResizeFrame.java')
-rw-r--r-- | src/com/android/launcher3/AppWidgetResizeFrame.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/launcher3/AppWidgetResizeFrame.java b/src/com/android/launcher3/AppWidgetResizeFrame.java index d00d5dda2..038092357 100644 --- a/src/com/android/launcher3/AppWidgetResizeFrame.java +++ b/src/com/android/launcher3/AppWidgetResizeFrame.java @@ -223,8 +223,8 @@ public class AppWidgetResizeFrame extends FrameLayout * Based on the current deltas, we determine if and how to resize the widget. */ private void resizeWidgetIfNeeded(boolean onDismiss) { - float xThreshold = mCellLayout.getCellWidth() + mCellLayout.getWidthGap(); - float yThreshold = mCellLayout.getCellHeight() + mCellLayout.getHeightGap(); + float xThreshold = mCellLayout.getCellWidth(); + float yThreshold = mCellLayout.getCellHeight(); int hSpanInc = getSpanIncrement((mDeltaX + mDeltaXAddOn) / xThreshold - mRunningHInc); int vSpanInc = getSpanIncrement((mDeltaY + mDeltaYAddOn) / yThreshold - mRunningVInc); @@ -337,8 +337,8 @@ public class AppWidgetResizeFrame extends FrameLayout } private void onTouchUp() { - int xThreshold = mCellLayout.getCellWidth() + mCellLayout.getWidthGap(); - int yThreshold = mCellLayout.getCellHeight() + mCellLayout.getHeightGap(); + int xThreshold = mCellLayout.getCellWidth(); + int yThreshold = mCellLayout.getCellHeight(); mDeltaXAddOn = mRunningHInc * xThreshold; mDeltaYAddOn = mRunningVInc * yThreshold; |