PIP: Update the focusability of recents row whenever Recents is shown
am: 8ad8419
* commit '8ad841944ebc2e10c620e5bb70135def4a9e5005':
PIP: Update the focusability of recents row whenever Recents is shown
Change-Id: I7fd5b0ce68d7c261339dd9db8a53db87e0e93c06
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