mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Disable window corner rounding on some devices
Bug: 122347746 Test: visual; on taimen, marlin and walleye Change-Id: If6ac1c75297dd25ad40d3ec61537e8793bceceb7
This commit is contained in:
committed by
Hyunyoung Song
parent
792fcc3aec
commit
a2074857dc
@@ -615,9 +615,12 @@ public abstract class QuickstepAppTransitionManagerImpl extends LauncherAppTrans
|
||||
// Animate window corner radius from 100% to windowCornerRadius.
|
||||
float windowCornerRadius = RecentsModel.INSTANCE.get(mLauncher)
|
||||
.getWindowCornerRadius();
|
||||
float circleRadius = iconWidth / 2f;
|
||||
float windowRadius = Utilities.mapRange(easePercent, circleRadius,
|
||||
windowCornerRadius);
|
||||
float windowRadius = 0;
|
||||
if (RecentsModel.INSTANCE.get(mLauncher).supportsRoundedCornersOnWindows()) {
|
||||
float circleRadius = iconWidth / 2f;
|
||||
windowRadius = Utilities.mapRange(easePercent, circleRadius,
|
||||
windowCornerRadius);
|
||||
}
|
||||
|
||||
// Animate the window crop so that it starts off as a square, and then reveals
|
||||
// horizontally.
|
||||
|
||||
Reference in New Issue
Block a user