Fixed corner radius during app launch

Change-Id: I9490bc359b93f9ca8b7c1dad2d93e90d0fba5ac8
Fixes: 122554807
Test: visual
This commit is contained in:
Lucas Dupin
2019-02-09 14:45:11 -08:00
parent 12a9f3f6e0
commit 330b857c42

View File

@@ -612,14 +612,10 @@ public abstract class QuickstepAppTransitionManagerImpl extends LauncherAppTrans
float transX0 = floatingViewBounds[0] - offsetX;
float transY0 = floatingViewBounds[1] - offsetY;
// Animate window corner radius from 100% to windowCornerRadius.
float windowCornerRadius = RecentsModel.INSTANCE.get(mLauncher)
.getWindowCornerRadius();
float windowRadius = 0;
if (RecentsModel.INSTANCE.get(mLauncher).supportsRoundedCornersOnWindows()) {
float circleRadius = iconWidth / 2f;
windowRadius = Utilities.mapRange(easePercent, circleRadius,
windowCornerRadius);
windowRadius = RecentsModel.INSTANCE.get(mLauncher)
.getWindowCornerRadius();
}
// Animate the window crop so that it starts off as a square, and then reveals