Merge "PIP: Prevent PIP icons in Recents from blinking when PIP is closed" into nyc-dev
This commit is contained in:
@@ -134,7 +134,8 @@ public class PipRecentsOverlayManager {
|
|||||||
*/
|
*/
|
||||||
public void requestFocus(boolean allowRecentsFocusable) {
|
public void requestFocus(boolean allowRecentsFocusable) {
|
||||||
mRecentsView.setVisibility(allowRecentsFocusable ? View.VISIBLE : View.GONE);
|
mRecentsView.setVisibility(allowRecentsFocusable ? View.VISIBLE : View.GONE);
|
||||||
if (!mIsPipRecentsOverlayShown || !mIsRecentsShown || mIsPipFocusedInRecent) {
|
if (!mIsPipRecentsOverlayShown || !mIsRecentsShown || mIsPipFocusedInRecent
|
||||||
|
|| !mPipManager.isPipShown()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mIsPipFocusedInRecent = true;
|
mIsPipFocusedInRecent = true;
|
||||||
@@ -153,7 +154,8 @@ public class PipRecentsOverlayManager {
|
|||||||
* This should be called only by {@link com.android.systemui.recents.tv.RecentsTvActivity}.
|
* This should be called only by {@link com.android.systemui.recents.tv.RecentsTvActivity}.
|
||||||
*/
|
*/
|
||||||
public void clearFocus() {
|
public void clearFocus() {
|
||||||
if (!mIsPipRecentsOverlayShown || !mIsRecentsShown || !mIsPipFocusedInRecent) {
|
if (!mIsPipRecentsOverlayShown || !mIsRecentsShown || !mIsPipFocusedInRecent
|
||||||
|
|| !mPipManager.isPipShown()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!mRecentsView.hasFocus()) {
|
if (!mRecentsView.hasFocus()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user