diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2019-04-22 09:58:14 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2019-04-22 10:00:01 -0700 |
commit | 7368fa4369bbd003f862f75fe9b3ac8975d48cd0 (patch) | |
tree | e12fdf59136be76f570c4bf86de0d3c77248ffec /src/com/android/launcher3/CellLayout.java | |
parent | bf81b2ca0c08b28f32c835bba8b56edfd268d363 (diff) | |
download | packages_apps_Trebuchet-7368fa4369bbd003f862f75fe9b3ac8975d48cd0.tar.gz packages_apps_Trebuchet-7368fa4369bbd003f862f75fe9b3ac8975d48cd0.tar.bz2 packages_apps_Trebuchet-7368fa4369bbd003f862f75fe9b3ac8975d48cd0.zip |
Skip state animation if animations are disabled
> Also update the animation disabled check to use new-API
Bug: 118678948
Change-Id: Ib709844e34bdb7e369b368a7c33f2e8ff120024b
Diffstat (limited to 'src/com/android/launcher3/CellLayout.java')
-rw-r--r-- | src/com/android/launcher3/CellLayout.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/CellLayout.java b/src/com/android/launcher3/CellLayout.java index a117cfd15..9d9a639d8 100644 --- a/src/com/android/launcher3/CellLayout.java +++ b/src/com/android/launcher3/CellLayout.java @@ -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); } |