mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Fixing two critical bugs in all apps transition controller
bug#1: if long press from page indicator region, you can pull up all apps even though the workspace is in overview state. bug#2: all apps should not intercept touch not only in overview mode but also in any modal state. Change-Id: I91c0a181f037f6c2465a983825da3a2da7e2920f
This commit is contained in:
@@ -108,7 +108,7 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
|
||||
public boolean onInterceptTouchEvent(MotionEvent ev) {
|
||||
if (ev.getAction() == MotionEvent.ACTION_DOWN) {
|
||||
mNoIntercept = false;
|
||||
if (mLauncher.getWorkspace().isInOverviewMode() || mLauncher.isWidgetsViewVisible()) {
|
||||
if (!mLauncher.isAllAppsVisible() && mLauncher.getWorkspace().workspaceInModalState()) {
|
||||
mNoIntercept = true;
|
||||
} else if (mLauncher.isAllAppsVisible() &&
|
||||
!mAppsView.shouldContainerScroll(ev)) {
|
||||
@@ -159,9 +159,8 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
if ((mLauncher.getDragLayer().isEventOverHotseat(ev)
|
||||
|| mLauncher.getDragLayer().isEventOverPageIndicator(ev))
|
||||
&& !grid.isVerticalBarLayout()) {
|
||||
if (mLauncher.getDragLayer().isEventOverHotseat(ev) ||
|
||||
mLauncher.getDragLayer().isEventOverPageIndicator(ev)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user