PIP: Update the focusability of recents row whenever Recents is shown
Bug: 28175628 Change-Id: I39da6ca3a8d379b85cea2341b3b61f93bf8cada4
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user