Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit abbf602

Browse files
bluemarvinkeianhzo
authored andcommitted
No longer save number of private windows on exit. Fixes #1899 (#1902)
1 parent 62d908a commit abbf602

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

  • app/src/common/shared/org/mozilla/vrbrowser/ui/widgets

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/Windows.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ public void load(WindowWidget aWindow) {
6666
class WindowsState {
6767
WindowPlacement focusedWindowPlacement = WindowPlacement.FRONT;
6868
ArrayList<WindowState> regularWindowsState = new ArrayList<>();
69-
ArrayList<WindowState> privateWindowsState = new ArrayList<>();
7069
boolean privateMode = false;
7170
}
7271

@@ -132,11 +131,6 @@ private void saveState() {
132131
windowState.load(window);
133132
state.regularWindowsState.add(windowState);
134133
}
135-
for (WindowWidget window : mPrivateWindows) {
136-
WindowState windowState = new WindowState();
137-
windowState.load(window);
138-
state.privateWindowsState.add(windowState);
139-
}
140134
Gson gson = new GsonBuilder().setPrettyPrinting().create();
141135
gson.toJson(state, writer);
142136

@@ -578,11 +572,6 @@ private void restoreWindows() {
578572
WindowWidget window = addWindow(windowState);
579573
window.getSessionStack().restore(windowState.sessionStack, windowState.currentSessionId);
580574
}
581-
mPrivateMode = true;
582-
for (WindowState windowState : windowsState.privateWindowsState) {
583-
WindowWidget window = addWindow(windowState);
584-
window.getSessionStack().restore(windowState.sessionStack, windowState.currentSessionId);
585-
}
586575
mPrivateMode = !windowsState.privateMode;
587576
if (windowsState.privateMode) {
588577
enterPrivateMode();

0 commit comments

Comments
 (0)