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

Commit 5802b598 authored by Jaewan Kim's avatar Jaewan Kim Committed by android-build-merger
Browse files

PIP: Update the focusability of recents row whenever Recents is shown

am: 8ad84194

* commit '8ad84194':
  PIP: Update the focusability of recents row whenever Recents is shown

Change-Id: I7fd5b0ce68d7c261339dd9db8a53db87e0e93c06
parents d2bead39 8ad84194
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -132,6 +132,7 @@ public class PipRecentsOverlayManager {
     * @param allowRecentsFocusable {@code true} if Recents can have focus. (i.e. Has a recent task)
     */
    public void requestFocus(boolean allowRecentsFocusable) {
        mRecentsView.setVisibility(allowRecentsFocusable ? View.VISIBLE : View.GONE);
        if (!mIsRecentsShown || mIsPipFocusedInRecent) {
            return;
        }
@@ -141,7 +142,6 @@ public class PipRecentsOverlayManager {
        mWindowManager.updateViewLayout(mOverlayView, mPipRecentsControlsViewFocusedLayoutParams);
        mPipControlsView.requestFocus();
        mPipControlsView.startFocusGainAnimation();
        mRecentsView.setVisibility(allowRecentsFocusable ? View.VISIBLE : View.GONE);
    }

    /**