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

Commit d015e63c authored by Ashley Prasad's avatar Ashley Prasad Committed by Android (Google) Code Review
Browse files

Merge "Move focus for windows in freeform mode" into main

parents c41a52db c36cc2b3
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package android.view;
import static android.app.WindowConfiguration.WINDOWING_MODE_MULTI_WINDOW;
import static android.app.WindowConfiguration.WINDOWING_MODE_FREEFORM;
import static android.content.pm.ActivityInfo.OVERRIDE_SANDBOX_VIEW_BOUNDS_APIS;
import static android.graphics.HardwareRenderer.SYNC_CONTEXT_IS_STOPPED;
import static android.graphics.HardwareRenderer.SYNC_LOST_SURFACE_REWARD_IF_FOUND;
@@ -2647,7 +2648,8 @@ public final class ViewRootImpl implements ViewParent,
            mStopped = stopped;
            final ThreadedRenderer renderer = mAttachInfo.mThreadedRenderer;
            if (renderer != null) {
                if (DEBUG_DRAW) Log.d(mTag, "WindowStopped on " + getTitle() + " set to " + mStopped);
                if (DEBUG_DRAW)
                    Log.d(mTag, "WindowStopped on " + getTitle() + " set to " + mStopped);
                renderer.setStopped(mStopped);
            }
            if (!mStopped) {
@@ -7968,8 +7970,9 @@ public final class ViewRootImpl implements ViewParent,
        }
        private boolean moveFocusToAdjacentWindow(@FocusDirection int direction) {
            if (getConfiguration().windowConfiguration.getWindowingMode()
                    != WINDOWING_MODE_MULTI_WINDOW) {
            final int windowingMode = getConfiguration().windowConfiguration.getWindowingMode();
            if (!(windowingMode == WINDOWING_MODE_MULTI_WINDOW
                    || windowingMode == WINDOWING_MODE_FREEFORM)) {
                return false;
            }
            try {