Merge cherrypicks of ['googleplex-android-review.googlesource.com/29616053', 'googleplex-android-review.googlesource.com/29656286'] into 24Q4-release.
Change-Id: If5fb394c4a29ca3153eecdc894f54321dbaa3927
This commit is contained in:
@@ -228,10 +228,13 @@ public class TaskbarUnstashInputConsumer extends DelegateInputConsumer {
|
||||
}
|
||||
|
||||
float velocityYPxPerS = mVelocityTracker.getYVelocity();
|
||||
float dY = Math.abs(mLastPos.y - mDownPos.y);
|
||||
if (mCanPlayTaskbarBgAlphaAnimation
|
||||
&& mMotionMoveCount >= NUM_MOTION_MOVE_THRESHOLD // Arbitrary value
|
||||
&& velocityYPxPerS != 0 // Ignore these
|
||||
&& velocityYPxPerS >= mTaskbarSlowVelocityYThreshold) {
|
||||
&& velocityYPxPerS >= mTaskbarSlowVelocityYThreshold
|
||||
&& dY != 0
|
||||
&& dY > mTouchSlop) {
|
||||
mTaskbarActivityContext.playTaskbarBackgroundAlphaAnimation();
|
||||
mCanPlayTaskbarBgAlphaAnimation = false;
|
||||
}
|
||||
|
||||
@@ -238,7 +238,7 @@ class SplitAnimationController(val splitSelectStateController: SplitSelectStateC
|
||||
taskViewHeight,
|
||||
)
|
||||
val snapshotViewSize =
|
||||
if (isPrimaryTaskSplitting) primarySnapshotViewSize else secondarySnapshotViewSize
|
||||
if (isPrimaryTaskSplitting) secondarySnapshotViewSize else primarySnapshotViewSize
|
||||
if (deviceProfile.isLeftRightSplit) {
|
||||
// Center view first so scaling happens uniformly, alternatively we can move pivotX to 0
|
||||
val centerThumbnailTranslationX: Float = (taskViewWidth - snapshotViewSize.x) / 2f
|
||||
|
||||
Reference in New Issue
Block a user