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

Commit e1e859ea authored by Ashley Prasad's avatar Ashley Prasad
Browse files

Revert "Move focus for windows in freeform mode"

This reverts commit c36cc2b3.

Reason for revert: Reverting while investigating jank metric.

Bug: 381589615
Change-Id: Ieed01857399b8c1a3144d6fda505bcec2649c607
parent c36cc2b3
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
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;
@@ -2633,8 +2632,7 @@ 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) {
@@ -7955,9 +7953,8 @@ public final class ViewRootImpl implements ViewParent,
        }
        private boolean moveFocusToAdjacentWindow(@FocusDirection int direction) {
            final int windowingMode = getConfiguration().windowConfiguration.getWindowingMode();
            if (!(windowingMode == WINDOWING_MODE_MULTI_WINDOW
                    || windowingMode == WINDOWING_MODE_FREEFORM)) {
            if (getConfiguration().windowConfiguration.getWindowingMode()
                    != WINDOWING_MODE_MULTI_WINDOW) {
                return false;
            }
            try {