Load animation for freeform windows.

Now that freeform window is also organized (although via a very simple
organizer), we should add it here in this check to make sure it still
loads animation correctly here in the framework.

Bug: 183906797
Test: Enter Freeform mode, tap on X - window now animates instead of
just disappear

Change-Id: Ica8de041e571510dcfc9f01f17ee87dc0467a1f1
This commit is contained in:
Ben Lin
2021-09-13 15:26:14 -07:00
parent e7b6834733
commit b73dd01b35

View File

@@ -16,6 +16,7 @@
package com.android.server.wm;
import static android.app.WindowConfiguration.WINDOWING_MODE_FREEFORM;
import static android.app.WindowConfiguration.WINDOWING_MODE_FULLSCREEN;
import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_BEHIND;
import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_UNSET;
@@ -2789,7 +2790,8 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<
boolean isVoiceInteraction) {
if (isOrganized()
// TODO(b/161711458): Clean-up when moved to shell.
&& getWindowingMode() != WINDOWING_MODE_FULLSCREEN) {
&& getWindowingMode() != WINDOWING_MODE_FULLSCREEN
&& getWindowingMode() != WINDOWING_MODE_FREEFORM) {
return null;
}