Merge "Close the TV PiP menu when losing window focus." into tm-dev am: 3448bcdbfc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18179543 Change-Id: I024c090a8c40e49647f1c2dd666b5ad6bffb8064 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
committed by
Automerger Merge Worker
commit
6a995a0425
@@ -494,6 +494,14 @@ public class TvPipMenuView extends FrameLayout implements View.OnClickListener {
|
|||||||
setFrameHighlighted(false);
|
setFrameHighlighted(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onWindowFocusChanged(boolean hasWindowFocus) {
|
||||||
|
super.onWindowFocusChanged(hasWindowFocus);
|
||||||
|
if (!hasWindowFocus) {
|
||||||
|
hideAllUserControls();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void animateAlphaTo(float alpha, View view) {
|
private void animateAlphaTo(float alpha, View view) {
|
||||||
if (view.getAlpha() == alpha) {
|
if (view.getAlpha() == alpha) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user