Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6103c92a authored by chaviw's avatar chaviw
Browse files

Override base isAnimating in WindowState

WindowState overrides the isAnimating call. A new base method was added
to handle specific animation types, but the WindowState class was still
overriding the old isAnimating call. Therefore, the check for insets
provider was not handled.

Test: NexusLauncherTests
Fixes: 152657145
Change-Id: I32f5469fa992adb712779a6cb961bd3a1b44a227
parent 9177c772
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4981,7 +4981,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
    }

    @Override
    boolean isAnimating(int flags) {
    boolean isAnimating(int flags, int typesToCheck) {

        // If we are an inset provider, all our animations are driven by the inset client, so we
        // aren't really animating.
@@ -4989,7 +4989,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
        if (mControllableInsetProvider != null) {
            return false;
        }
        return super.isAnimating(flags);
        return super.isAnimating(flags, typesToCheck);
    }

    void startAnimation(Animation anim) {