From 42fc88686c1666a3032fa0594a0924297256c6ed Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Tue, 3 Sep 2019 19:38:58 +0200 Subject: [PATCH] Hide the context when the window loses focus (#1741) --- .../shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java index e744c51dc..24d63c838 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java @@ -551,6 +551,10 @@ public void setActiveWindow(boolean active) { updateTitleBar(); } + if (mContextMenu != null) { + mContextMenu.hide(REMOVE_WIDGET); + } + TelemetryWrapper.activePlacementEvent(mWindowPlacement.getValue(), mActive); updateBorder(); }