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

Commit 3a8d7fe1 authored by Evan Rosky's avatar Evan Rosky
Browse files

Fixed a small sizecompat check

Was only checking dev option, not actual sizecompat.

Bug: 143597834
Test: use caption to restore app in desktop.
Change-Id: I37e31212f6aee9da8c7e857c3ed7ee45f47d515e
parent 07a945d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3432,7 +3432,7 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {

                if (stack.inFreeformWindowingMode()) {
                    stack.setWindowingMode(WINDOWING_MODE_FULLSCREEN);
                } else if (!mSizeCompatFreeform) {
                } else if (!mSizeCompatFreeform && r.inSizeCompatMode()) {
                    throw new IllegalStateException("Size-compat windows are currently not"
                            + "freeform-enabled");
                } else if (stack.getParent().inFreeformWindowingMode()) {