mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +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:
@@ -101,7 +101,7 @@ public abstract class AbstractFloatingView extends LinearLayout implements Touch
|
||||
}
|
||||
|
||||
public final void close(boolean animate) {
|
||||
animate &= !Utilities.isPowerSaverOn(getContext());
|
||||
animate &= !Utilities.isPowerSaverPreventingAnimation(getContext());
|
||||
handleClose(animate);
|
||||
BaseActivity.fromContext(getContext()).getUserEventDispatcher()
|
||||
.resetElapsedContainerMillis("container closed");
|
||||
|
||||
Reference in New Issue
Block a user