Merge "Set resizing to false if no fling animation" into sc-v2-dev

This commit is contained in:
Tony Huang
2021-07-05 06:11:11 +00:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 1 deletions

View File

@@ -286,7 +286,11 @@ public final class SplitLayout {
} }
private void flingDividePosition(int from, int to) { private void flingDividePosition(int from, int to) {
if (from == to) return; if (from == to) {
// No animation run, it should stop resizing here.
mSplitWindowManager.setResizingSplits(false);
return;
}
ValueAnimator animator = ValueAnimator ValueAnimator animator = ValueAnimator
.ofInt(from, to) .ofInt(from, to)
.setDuration(250); .setDuration(250);

View File

@@ -460,6 +460,7 @@ public class DividerView extends FrameLayout implements OnTouchListener,
private void stopDragging() { private void stopDragging() {
mHandle.setTouching(false, true /* animate */); mHandle.setTouching(false, true /* animate */);
mWindowManager.setSlippery(true); mWindowManager.setSlippery(true);
mWindowManagerProxy.setResizing(false);
releaseBackground(); releaseBackground();
} }