PiP: Disable enter-split button when not visible.

Bug: 209360831
Test: Enter PiP, press on where split-button should be - doesn't do
anything

Change-Id: I456cf7f3aa2aecdf3dae10d968c28d92e985e7dd
This commit is contained in:
Ben Lin
2021-12-07 14:42:50 -08:00
parent 99461804ca
commit 3cb94e0d6a

View File

@@ -189,7 +189,7 @@ public class PipMenuView extends FrameLayout {
mEnterSplitButton = findViewById(R.id.enter_split);
mEnterSplitButton.setAlpha(0);
mEnterSplitButton.setOnClickListener(v -> {
if (mMenuContainer.getAlpha() != 0) {
if (mEnterSplitButton.getAlpha() != 0) {
enterSplit();
}
});