From b93e419e8b129d201b268d741053ed2d58ea6aad Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Mon, 10 Dec 2018 15:18:32 -0800 Subject: [PATCH] Speed up corner animation The size of the window changes during the animation progress, making the window look rounded for longer. What we want is to animate it from the shape of the icon to the shape of the display. Change-Id: Ib4889b697bf78cdc37c160130fde961650080fb7 Fixes: 120553563 Test: visual --- .../com/android/launcher3/LauncherAppTransitionManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/launcher3/LauncherAppTransitionManagerImpl.java b/quickstep/src/com/android/launcher3/LauncherAppTransitionManagerImpl.java index 1049cca597..20a83b5cd0 100644 --- a/quickstep/src/com/android/launcher3/LauncherAppTransitionManagerImpl.java +++ b/quickstep/src/com/android/launcher3/LauncherAppTransitionManagerImpl.java @@ -618,7 +618,7 @@ public class LauncherAppTransitionManagerImpl extends LauncherAppTransitionManag // Animate window corner radius from 100% to windowCornerRadius. float windowCornerRadius = RecentsModel.INSTANCE.get(mLauncher) .getWindowCornerRadius(); - float circleRadius = scaledWindowWidth / 2f; + float circleRadius = iconWidth / 2f; float windowRadius = Utilities.mapRange(easePercent, circleRadius, windowCornerRadius);