Skip to content

Commit

Permalink
Hide bookmarks/history when selecting a different tab (#2190)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and bluemarvin committed Nov 13, 2019
1 parent b61f7da commit ea277e8
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -483,6 +483,14 @@ public void switchHistory() {
}
}

private void hideLibraryPanels() {
if (isBookmarksVisible()) {
hideBookmarks();
} else if (isHistoryVisible()) {
hideHistory();
}
}

public void showHistory() {
showHistory(true);
}
Expand Down Expand Up @@ -1035,6 +1043,7 @@ public void setSession(@NonNull Session aSession) {
listener.onSessionChanged(oldSession, aSession);
}
}
hideLibraryPanels();
}

public void releaseDisplay(GeckoSession aSession) {
Expand Down

0 comments on commit ea277e8

Please sign in to comment.