mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
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
This commit is contained in:
committed by
Winson Chung
parent
5469fad289
commit
b93e419e8b
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user