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

Make the UI react faster to page loads #2113

Merged
merged 1 commit into from
Nov 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1487,6 +1487,14 @@ public void onVideoAvailabilityChanged(boolean aVideosAvailable) {
@Override
public void onPageStart(@NonNull GeckoSession geckoSession, @NonNull String s) {
mCaptureOnPageStop = true;

if (isHistoryVisible()) {
hideHistory();
}

if (isBookmarksVisible()) {
hideBookmarks();
}
}

@Override
Expand All @@ -1505,13 +1513,6 @@ public void captureImage() {

@Override
public void onLocationChange(@NonNull GeckoSession session, @Nullable String url) {
if (isBookmarksVisible()) {
hideBookmarks();

} else if (isHistoryVisible()) {
hideHistory();
}

updateTitleBarUrl(url);
}

Expand Down