Merge "Fixing two critical bugs in all apps transition controller" into ub-launcher3-calgary
This commit is contained in:
commit
b7d16b7e5c
|
@ -3235,7 +3235,6 @@ public class Launcher extends Activity
|
||||||
mWorkspace.startReordering(v);
|
mWorkspace.startReordering(v);
|
||||||
} else {
|
} else {
|
||||||
showOverviewMode(true);
|
showOverviewMode(true);
|
||||||
mHotseat.requestDisallowInterceptTouchEvent(true);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
final boolean isAllAppsButton =
|
final boolean isAllAppsButton =
|
||||||
|
@ -3386,6 +3385,9 @@ public class Launcher extends Activity
|
||||||
mStateTransitionAnimation.startAnimationToWorkspace(mState, mWorkspace.getState(),
|
mStateTransitionAnimation.startAnimationToWorkspace(mState, mWorkspace.getState(),
|
||||||
Workspace.State.OVERVIEW, animated, postAnimRunnable);
|
Workspace.State.OVERVIEW, animated, postAnimRunnable);
|
||||||
mState = State.WORKSPACE;
|
mState = State.WORKSPACE;
|
||||||
|
// If animated from long press, then don't allow any of the controller in the drag
|
||||||
|
// layer to intercept any remaining touch.
|
||||||
|
mWorkspace.requestDisallowInterceptTouchEvent(animated);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -108,7 +108,7 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
|
||||||
public boolean onInterceptTouchEvent(MotionEvent ev) {
|
public boolean onInterceptTouchEvent(MotionEvent ev) {
|
||||||
if (ev.getAction() == MotionEvent.ACTION_DOWN) {
|
if (ev.getAction() == MotionEvent.ACTION_DOWN) {
|
||||||
mNoIntercept = false;
|
mNoIntercept = false;
|
||||||
if (mLauncher.getWorkspace().isInOverviewMode() || mLauncher.isWidgetsViewVisible()) {
|
if (!mLauncher.isAllAppsVisible() && mLauncher.getWorkspace().workspaceInModalState()) {
|
||||||
mNoIntercept = true;
|
mNoIntercept = true;
|
||||||
} else if (mLauncher.isAllAppsVisible() &&
|
} else if (mLauncher.isAllAppsVisible() &&
|
||||||
!mAppsView.shouldContainerScroll(ev)) {
|
!mAppsView.shouldContainerScroll(ev)) {
|
||||||
|
@ -159,9 +159,8 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ((mLauncher.getDragLayer().isEventOverHotseat(ev)
|
if (mLauncher.getDragLayer().isEventOverHotseat(ev) ||
|
||||||
|| mLauncher.getDragLayer().isEventOverPageIndicator(ev))
|
mLauncher.getDragLayer().isEventOverPageIndicator(ev)) {
|
||||||
&& !grid.isVerticalBarLayout()) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue