mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Don't prevent animations in power save mode
Now that batter saver mode doesn't get rid of animations in P, we shouldn't use custom logic to prevent them either. Also updated ATLEAST_P to use version code. Bug: 79990054 Change-Id: If17cf369035c976f3d9d81f35432a045f1956ce5
This commit is contained in:
@@ -1980,7 +1980,7 @@ public class CellLayout extends ViewGroup {
|
||||
// Animations are disabled in power save mode, causing the repeated animation to jump
|
||||
// spastically between beginning and end states. Since this looks bad, we don't repeat
|
||||
// the animation in power save mode.
|
||||
if (!Utilities.isPowerSaverOn(getContext())) {
|
||||
if (!Utilities.isPowerSaverPreventingAnimation(getContext())) {
|
||||
va.setRepeatMode(ValueAnimator.REVERSE);
|
||||
va.setRepeatCount(ValueAnimator.INFINITE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user