mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Moving the QSB to the workspace grid.
The QSB will only be resent on the first screen of the workspace covering the full width of the first row. If will not be movable. The first screen of the workspace will not be movable. The searchDropTargetBar no longer contains the QSB (it can be renamed in aseparate cl). Refactoring all QSB related logic by moving it to a custom view inflated only using xml. Change-Id: Icb4fd6eb855df1af15f685961c38351bf4fd4f4a
This commit is contained in:
@@ -1653,7 +1653,8 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
|
||||
if (DEBUG) Log.d(TAG, "mParentDownMotionY: " + mParentDownMotionY);
|
||||
|
||||
final int pageUnderPointIndex = getNearestHoverOverPageIndex();
|
||||
if (pageUnderPointIndex > -1 && pageUnderPointIndex != indexOfChild(mDragView)) {
|
||||
// Do not allow any page to be moved to 0th position.
|
||||
if (pageUnderPointIndex > 0 && pageUnderPointIndex != indexOfChild(mDragView)) {
|
||||
mTempVisiblePagesRange[0] = 0;
|
||||
mTempVisiblePagesRange[1] = getPageCount() - 1;
|
||||
getFreeScrollPageRange(mTempVisiblePagesRange);
|
||||
@@ -2171,7 +2172,8 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
|
||||
public boolean startReordering(View v) {
|
||||
int dragViewIndex = indexOfChild(v);
|
||||
|
||||
if (mTouchState != TOUCH_STATE_REST || dragViewIndex == -1) return false;
|
||||
// Do not allow the first page to be moved around
|
||||
if (mTouchState != TOUCH_STATE_REST || dragViewIndex <= 0) return false;
|
||||
|
||||
mTempVisiblePagesRange[0] = 0;
|
||||
mTempVisiblePagesRange[1] = getPageCount() - 1;
|
||||
|
||||
Reference in New Issue
Block a user