summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/CellLayout.java
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2018-05-18 17:18:49 -0700
committerTony Wickham <twickham@google.com>2018-05-18 17:18:49 -0700
commit8155fa2aa50a4c2ae3d4d1c599d249b6e20ec47d (patch)
treeb73d49f99736ee053c39718fb112f789703ab439 /src/com/android/launcher3/CellLayout.java
parent1b74bd652cb4fa8e09590d8aeaaf8a7ff0f92888 (diff)
downloadandroid_packages_apps_Trebuchet-8155fa2aa50a4c2ae3d4d1c599d249b6e20ec47d.tar.gz
android_packages_apps_Trebuchet-8155fa2aa50a4c2ae3d4d1c599d249b6e20ec47d.tar.bz2
android_packages_apps_Trebuchet-8155fa2aa50a4c2ae3d4d1c599d249b6e20ec47d.zip
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
Diffstat (limited to 'src/com/android/launcher3/CellLayout.java')
-rw-r--r--src/com/android/launcher3/CellLayout.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/CellLayout.java b/src/com/android/launcher3/CellLayout.java
index 797908261..6c2fd8e53 100644
--- a/src/com/android/launcher3/CellLayout.java
+++ b/src/com/android/launcher3/CellLayout.java
@@ -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);
}