summaryrefslogtreecommitdiffstats
path: root/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2019-05-30 13:15:54 -0700
committerWinson Chung <winsonc@google.com>2019-05-30 13:18:41 -0700
commit0ef6fe00b0e2a7ef59db149b5031a0fbcdde86b2 (patch)
tree8c22093ed56fde2969f13c73aee87aea99de05f0 /quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java
parent8be337b8a761709ea2679dd3776ff23f884987ff (diff)
parenta1898247cae3e259dc8cad37207ddaf56fdc1a82 (diff)
downloadpackages_apps_Trebuchet-0ef6fe00b0e2a7ef59db149b5031a0fbcdde86b2.tar.gz
packages_apps_Trebuchet-0ef6fe00b0e2a7ef59db149b5031a0fbcdde86b2.tar.bz2
packages_apps_Trebuchet-0ef6fe00b0e2a7ef59db149b5031a0fbcdde86b2.zip
Merging ub-launcher3-qt-dev, build 5619253
Test: Manual Bug:112282235 P3 Starting an app from Launcher very rarely takes > 10 sec Bug:121279417 P2 Why LauncherInstrumentation.WAIT_TIME_MS == 60000? Bug:123892607 P1 Test broken: WellbeingTests.testPauseAppFromAllApps Bug:123900446 P1 App to home animation should zoom into the app icon Bug:125844074 P2 Final UX and animations for Launcher DWB integration Bug:131360075 P1 [Gesture Nav] Polish/finish landscape Bug:131698989 P2 Add task callback for locked state change Bug:131741395 P2 Allow windows to scale/move past overview positioning Bug:131768436 P1 Bad placement of search bar Bug:131854153 P1 Lots of Cuttlefish (and not only) tests are broken Bug:131867841 P1 Changing display size does not update the grid Bug:132460627 P1 Unable to swipe to all apps screen on devices Bug:132687470 P1 Swiping home from forced landscape app creates cutoff task thumbnail Bug:132756514 P1 Sometimes (when quick switching?) user gets stuck in full-screen recents view Bug:132900132 P1 Apparently, tests start running while provisioning is still in progress Bug:132917885 P1 Reduce swipe-up gesture region height in landscape Bug:132975416 P1 Flake in NexusPredictionAppTracker.getAppPredictionContextExtras Bug:132993129 P1 If predictions disabled, app predictions loading bar appears briefly on device restart Bug:133113732 P1 [B1/C1][QT][CTS_Verifier_9.0_r1]Device Owner Tests-LockTask UI-Enable Overview button failure Bug:133167096 P1 It is way too easy to dismiss apps from the lock screen Bug:133651528 P1 [QT]"Pixel Launcher isn't responding" dialog pop up ,after DUT restored. Bug:133765434 P1 [Flaky test] Launching task didn't open a new window Bug:133765491 P1 App docked in split screen flickers with emptiness observed while rotating the device Bug:133783088 P1 Footer showing up on all overview task snapshots even with no items showing. Bug:133867119 P2 Lab-only flake: want to switch from workspace to all apps; Swipe failed to receive an event for the swipe end Bug:64712476 P3 Import translations for dev branches Change-Id: Ib4bcefdbb4027992e75e2742d72f199e13467875
Diffstat (limited to 'quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java')
-rw-r--r--quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java
index 805cf3328..0ae469c70 100644
--- a/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java
+++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/util/ClipAnimationHelper.java
@@ -23,7 +23,6 @@ import static com.android.systemui.shared.system.RemoteAnimationTargetCompat.MOD
import android.annotation.TargetApi;
import android.content.Context;
-import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Matrix.ScaleToFit;
import android.graphics.Rect;
@@ -160,14 +159,16 @@ public class ClipAnimationHelper {
public RectF applyTransform(RemoteAnimationTargetSet targetSet, TransformParams params,
boolean launcherOnTop) {
+ float progress = params.progress;
if (params.currentRect == null) {
RectF currentRect;
mTmpRectF.set(mTargetRect);
Utilities.scaleRectFAboutCenter(mTmpRectF, params.offsetScale);
- float progress = params.progress;
currentRect = mRectFEvaluator.evaluate(progress, mSourceRect, mTmpRectF);
currentRect.offset(params.offsetX, 0);
+ // Don't clip past progress > 1.
+ progress = Math.min(1, progress);
final RectF sourceWindowClipInsets = params.forLiveTile
? mSourceWindowClipInsetsForLiveTile : mSourceWindowClipInsets;
mClipRectF.left = sourceWindowClipInsets.left * progress;
@@ -189,7 +190,7 @@ public class ClipAnimationHelper {
float alpha = 1f;
int layer = RemoteAnimationProvider.getLayer(app, mBoostModeTargetLayers);
float cornerRadius = 0f;
- float scale = params.currentRect.width() / crop.width();
+ float scale = Math.max(params.currentRect.width(), mTargetRect.width()) / crop.width();
if (app.mode == targetSet.targetMode) {
if (app.activityType != RemoteAnimationTargetCompat.ACTIVITY_TYPE_HOME) {
mTmpMatrix.setRectToRect(mSourceRect, params.currentRect, ScaleToFit.FILL);
@@ -198,7 +199,7 @@ public class ClipAnimationHelper {
if (mSupportsRoundedCornersOnWindows) {
float windowCornerRadius = mUseRoundedCornersOnWindows
? mWindowCornerRadius : 0;
- cornerRadius = Utilities.mapRange(params.progress, windowCornerRadius,
+ cornerRadius = Utilities.mapRange(progress, windowCornerRadius,
mTaskCornerRadius);
mCurrentCornerRadius = cornerRadius;
}