From db7c94527e2721599554b83e2b090490d5a95bcd Mon Sep 17 00:00:00 2001 From: Imanol Fernandez Date: Thu, 14 May 2020 17:37:20 +0200 Subject: [PATCH] Prevent duplicated setActive(false) calls --- .../shared/org/mozilla/vrbrowser/browser/engine/Session.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/Session.java b/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/Session.java index 02b6117c51..e8fc81e925 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/Session.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/Session.java @@ -767,6 +767,9 @@ public void goForward() { } public void setActive(boolean aActive) { + if (mState.mSession != null && mState.isActive() == aActive) { + return; + } // Flush the events queued while the session was inactive if (mState.mSession != null && !mState.isActive() && aActive) { flushQueuedEvents();