Merge "PIP: Fix system UI crash" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
28d9c9f7b2
@@ -134,7 +134,7 @@ 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 (!mIsRecentsShown || mIsPipFocusedInRecent) {
|
if (!mIsPipRecentsOverlayShown || !mIsRecentsShown || mIsPipFocusedInRecent) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mIsPipFocusedInRecent = true;
|
mIsPipFocusedInRecent = true;
|
||||||
@@ -153,7 +153,7 @@ 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 (!mIsRecentsShown || !mIsPipFocusedInRecent) {
|
if (!mIsPipRecentsOverlayShown || !mIsRecentsShown || !mIsPipFocusedInRecent) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!mRecentsView.hasFocus()) {
|
if (!mRecentsView.hasFocus()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user