summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Dupin <dupin@google.com>2018-12-10 15:18:32 -0800
committerWinson Chung <winsonc@google.com>2018-12-11 00:03:54 +0000
commitb93e419e8b129d201b268d741053ed2d58ea6aad (patch)
treebc9642a46d63b93c6960d874e6a8d2aed7e0423a
parent5469fad289a35e4bba2c452f9353028a93f5cd6d (diff)
downloadandroid_packages_apps_Trebuchet-b93e419e8b129d201b268d741053ed2d58ea6aad.tar.gz
android_packages_apps_Trebuchet-b93e419e8b129d201b268d741053ed2d58ea6aad.tar.bz2
android_packages_apps_Trebuchet-b93e419e8b129d201b268d741053ed2d58ea6aad.zip
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
-rw-r--r--quickstep/src/com/android/launcher3/LauncherAppTransitionManagerImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/quickstep/src/com/android/launcher3/LauncherAppTransitionManagerImpl.java b/quickstep/src/com/android/launcher3/LauncherAppTransitionManagerImpl.java
index 1049cca59..20a83b5cd 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);