mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 02:08:20 +00:00
Removing widgetGap and heightGap from cellLayout
This values are always set to 0 Change-Id: Ic317efdc65baa22e915f4766c60c67c116bb94a8
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user