Merge "Prevent x-axis window movement during the initial swipe up to show transient taskbar" into tm-qpr-dev
This commit is contained in:
commit
e912742234
5 files changed
+55
No files matched your search
@@ -378,6 +378,9 @@ public class OtherActivityInputConsumer extends ContextWrapper implements InputC
|
||||
mInteractionHandler.onGestureStarted(isLikelyToStartNewTask);
|
||||
|
||||
mInteractionHandler.setTaskbarAlreadyOpen(mTaskbarAlreadyOpen);
|
||||
if (mIsTransientTaskbar && !mTaskbarAlreadyOpen && !isLikelyToStartNewTask) {
|
||||
mInteractionHandler.setClampScrollOffset(true);
|
||||
}
|
||||
}
|
||||
|
||||
private void startTouchTrackingForWindowAnimation(long touchTimeMs) {
|
||||
@@ -473,6 +476,9 @@ public class OtherActivityInputConsumer extends ContextWrapper implements InputC
|
||||
@UiThread
|
||||
private void onInteractionGestureFinished() {
|
||||
Preconditions.assertUIThread();
|
||||
if (mInteractionHandler != null) {
|
||||
mInteractionHandler.setClampScrollOffset(false);
|
||||
}
|
||||
removeListener();
|
||||
mInteractionHandler = null;
|
||||
cleanupAfterGesture();
|
||||
|
||||
Reference in new issue
Block a user