Merge "Ensure movement bounds for shift account for current bounds" into rvc-dev
This commit is contained in:
@@ -467,9 +467,9 @@ public class PipTouchHandler {
|
|||||||
// touching the screen
|
// touching the screen
|
||||||
} else {
|
} else {
|
||||||
final boolean isExpanded = mMenuState == MENU_STATE_FULL && willResizeMenu();
|
final boolean isExpanded = mMenuState == MENU_STATE_FULL && willResizeMenu();
|
||||||
final Rect toMovementBounds = isExpanded
|
final Rect toMovementBounds = new Rect();
|
||||||
? new Rect(expandedMovementBounds)
|
mSnapAlgorithm.getMovementBounds(curBounds, insetBounds,
|
||||||
: new Rect(normalMovementBounds);
|
toMovementBounds, mIsImeShowing ? mImeHeight : 0);
|
||||||
final int prevBottom = mMovementBounds.bottom - mMovementBoundsExtraOffsets;
|
final int prevBottom = mMovementBounds.bottom - mMovementBoundsExtraOffsets;
|
||||||
final int toBottom = toMovementBounds.bottom < toMovementBounds.top
|
final int toBottom = toMovementBounds.bottom < toMovementBounds.top
|
||||||
? toMovementBounds.bottom
|
? toMovementBounds.bottom
|
||||||
@@ -1039,6 +1039,7 @@ public class PipTouchHandler {
|
|||||||
pw.println(innerPrefix + "mShelfHeight=" + mShelfHeight);
|
pw.println(innerPrefix + "mShelfHeight=" + mShelfHeight);
|
||||||
pw.println(innerPrefix + "mSavedSnapFraction=" + mSavedSnapFraction);
|
pw.println(innerPrefix + "mSavedSnapFraction=" + mSavedSnapFraction);
|
||||||
pw.println(innerPrefix + "mEnableDragToEdgeDismiss=" + mEnableDismissDragToEdge);
|
pw.println(innerPrefix + "mEnableDragToEdgeDismiss=" + mEnableDismissDragToEdge);
|
||||||
|
pw.println(innerPrefix + "mMovementBoundsExtraOffsets=" + mMovementBoundsExtraOffsets);
|
||||||
mTouchState.dump(pw, innerPrefix);
|
mTouchState.dump(pw, innerPrefix);
|
||||||
mMotionHelper.dump(pw, innerPrefix);
|
mMotionHelper.dump(pw, innerPrefix);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ import java.io.PrintWriter;
|
|||||||
* This keeps track of the touch state throughout the current touch gesture.
|
* This keeps track of the touch state throughout the current touch gesture.
|
||||||
*/
|
*/
|
||||||
public class PipTouchState {
|
public class PipTouchState {
|
||||||
private static final String TAG = "PipTouchHandler";
|
private static final String TAG = "PipTouchState";
|
||||||
private static final boolean DEBUG = false;
|
private static final boolean DEBUG = false;
|
||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
|
|||||||
Reference in New Issue
Block a user