Merge "Prevent x-axis window movement during the initial swipe up to show transient taskbar" into tm-qpr-dev am: e912742234 am: 0964f40f1f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20470530 Change-Id: I8dd843a17838d3303a580f617c30a677ab9be5f9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -754,6 +754,21 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets whether or not we should clamp the scroll offset.
|
||||
* This is used to avoid x-axis movement when swiping up transient taskbar.
|
||||
* @param clampScrollOffset When true, we clamp the scroll to 0 before the clamp threshold is
|
||||
* met.
|
||||
*/
|
||||
public void setClampScrollOffset(boolean clampScrollOffset) {
|
||||
if (mRecentsView == null) {
|
||||
mStateCallback.runOnceAtState(STATE_LAUNCHER_PRESENT,
|
||||
() -> mRecentsView.setClampScrollOffset(clampScrollOffset));
|
||||
return;
|
||||
}
|
||||
mRecentsView.setClampScrollOffset(clampScrollOffset);
|
||||
}
|
||||
|
||||
public void setIsLikelyToStartNewTask(boolean isLikelyToStartNewTask) {
|
||||
setIsLikelyToStartNewTask(
|
||||
isLikelyToStartNewTask,
|
||||
|
||||
Reference in New Issue
Block a user