mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Skip state animation if animations are disabled
> Also update the animation disabled check to use new-API Bug: 118678948 Change-Id: Ib709844e34bdb7e369b368a7c33f2e8ff120024b
This commit is contained in:
@@ -1983,7 +1983,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.isPowerSaverPreventingAnimation(getContext())) {
|
||||
if (Utilities.areAnimationsEnabled(getContext())) {
|
||||
va.setRepeatMode(ValueAnimator.REVERSE);
|
||||
va.setRepeatCount(ValueAnimator.INFINITE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user