Merge "Close the TV PiP menu when losing window focus." into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3448bcdbfc
@@ -494,6 +494,14 @@ public class TvPipMenuView extends FrameLayout implements View.OnClickListener {
|
||||
setFrameHighlighted(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onWindowFocusChanged(boolean hasWindowFocus) {
|
||||
super.onWindowFocusChanged(hasWindowFocus);
|
||||
if (!hasWindowFocus) {
|
||||
hideAllUserControls();
|
||||
}
|
||||
}
|
||||
|
||||
private void animateAlphaTo(float alpha, View view) {
|
||||
if (view.getAlpha() == alpha) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user