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
This commit is contained in:
chaviw
2020-03-30 14:56:54 -07:00
parent 9177c77262
commit 6103c92a56

View File

@@ -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) {