Disable window corner rounding on some devices

Bug: 122347746
Test: visual; on taimen, marlin and walleye
Change-Id: If6ac1c75297dd25ad40d3ec61537e8793bceceb7
This commit is contained in:
Lucas Dupin authored and Hyunyoung Song committed 2019-01-24 16:19:49 -08:00
1 parent 792fcc3aec
commit a2074857dc
5 files changed
+41 -8

No files matched your search

@@ -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.