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

Commit 8ad84194 authored by Jaewan Kim's avatar Jaewan Kim
Browse files

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

Bug: 28175628
Change-Id: I39da6ca3a8d379b85cea2341b3b61f93bf8cada4
parent d51afa45
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);
    }

    /**