From 3e0692280ffc78a97fde8ca2b27da82670c0b3f3 Mon Sep 17 00:00:00 2001 From: "Randall E. Barker" Date: Thu, 28 May 2020 13:56:36 -0700 Subject: [PATCH] Fix build breakage (#3437) --- .../shared/org/mozilla/vrbrowser/ui/widgets/Windows.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/Windows.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/Windows.java index b4f474d42..2bbfb0440 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/Windows.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/Windows.java @@ -742,10 +742,8 @@ public void restoreSessions() { if (windowState.tabIndex >= 0 && windowState.tabIndex < restoredSessions.size()) { Session defaultSession = targetWindow.getSession(); Session session = restoredSessions.get(windowState.tabIndex); - targetWindow.setupListeners(session); + targetWindow.setSession(session, WindowWidget.DEACTIVATE_CURRENT_SESSION); session.setActive(true); - targetWindow.setSession(session); - SessionStore.get().setActiveSession(session); // Destroy the default blank session SessionStore.get().destroySession(defaultSession);