summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/AbstractFloatingView.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2019-04-22 09:58:14 -0700
committerSunny Goyal <sunnygoyal@google.com>2019-04-22 10:00:01 -0700
commit7368fa4369bbd003f862f75fe9b3ac8975d48cd0 (patch)
treee12fdf59136be76f570c4bf86de0d3c77248ffec /src/com/android/launcher3/AbstractFloatingView.java
parentbf81b2ca0c08b28f32c835bba8b56edfd268d363 (diff)
downloadandroid_packages_apps_Trebuchet-7368fa4369bbd003f862f75fe9b3ac8975d48cd0.tar.gz
android_packages_apps_Trebuchet-7368fa4369bbd003f862f75fe9b3ac8975d48cd0.tar.bz2
android_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/AbstractFloatingView.java')
-rw-r--r--src/com/android/launcher3/AbstractFloatingView.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/launcher3/AbstractFloatingView.java b/src/com/android/launcher3/AbstractFloatingView.java
index 3cb6ba67f..d6f992f51 100644
--- a/src/com/android/launcher3/AbstractFloatingView.java
+++ b/src/com/android/launcher3/AbstractFloatingView.java
@@ -30,7 +30,6 @@ import android.util.AttributeSet;
import android.util.Pair;
import android.view.MotionEvent;
import android.view.View;
-import android.view.ViewGroup;
import android.widget.LinearLayout;
import androidx.annotation.IntDef;
@@ -120,7 +119,7 @@ public abstract class AbstractFloatingView extends LinearLayout implements Touch
}
public final void close(boolean animate) {
- animate &= !Utilities.isPowerSaverPreventingAnimation(getContext());
+ animate &= Utilities.areAnimationsEnabled(getContext());
if (mIsOpen) {
BaseActivity.fromContext(getContext()).getUserEventDispatcher()
.resetElapsedContainerMillis("container closed");