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

Commit 44f388a3 authored by Qiwen Zhao's avatar Qiwen Zhao
Browse files

Merge commit 'ff4bdd0b'

parents ab452f70 ff4bdd0b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3716,8 +3716,10 @@ public class WindowManagerService extends IWindowManager.Stub
        } else {
            // TODO(multidisplay): Change to the correct display.
            final WindowList windows = getDefaultWindowListLocked();
            for (int pos = windows.size() - 1; pos >= 0; --pos) {
            int pos = windows.size() - 1;
            while (pos >= 0) {
                WindowState win = windows.get(pos);
                pos--;
                if (win.mAppToken != null) {
                    // We hit an application window. so the orientation will be determined by the
                    // app window. No point in continuing further.