mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Fix the bug where you can grab the workspace while all apps is animating.
You can still grab it, but now once all apps is up, it returns to where it belongs.
This commit is contained in:
@@ -769,7 +769,15 @@ public class Workspace extends ViewGroup implements DropTarget, DragSource, Drag
|
||||
@Override
|
||||
public boolean onTouchEvent(MotionEvent ev) {
|
||||
|
||||
if (mLauncher.isWorkspaceLocked() || mLauncher.isAllAppsVisible()) {
|
||||
if (mLauncher.isWorkspaceLocked()) {
|
||||
return false; // We don't want the events. Let them fall through to the all apps view.
|
||||
}
|
||||
if (mLauncher.isAllAppsVisible()) {
|
||||
// Cancel any scrolling that is in progress.
|
||||
if (!mScroller.isFinished()) {
|
||||
mScroller.abortAnimation();
|
||||
}
|
||||
snapToScreen(mCurrentScreen);
|
||||
return false; // We don't want the events. Let them fall through to the all apps view.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user