From 8ad841944ebc2e10c620e5bb70135def4a9e5005 Mon Sep 17 00:00:00 2001 From: Jaewan Kim Date: Thu, 14 Apr 2016 11:36:48 +0900 Subject: [PATCH] PIP: Update the focusability of recents row whenever Recents is shown Bug: 28175628 Change-Id: I39da6ca3a8d379b85cea2341b3b61f93bf8cada4 --- .../com/android/systemui/tv/pip/PipRecentsOverlayManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/tv/pip/PipRecentsOverlayManager.java b/packages/SystemUI/src/com/android/systemui/tv/pip/PipRecentsOverlayManager.java index c0e221fa84426..85676250d28b3 100644 --- a/packages/SystemUI/src/com/android/systemui/tv/pip/PipRecentsOverlayManager.java +++ b/packages/SystemUI/src/com/android/systemui/tv/pip/PipRecentsOverlayManager.java @@ -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); } /**