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

Commit

Permalink
Make the UI react faster to page loads (#2113)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored and bluemarvin committed Nov 1, 2019
1 parent 56c3c84 commit 0b8943b
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,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 @@ -1524,13 +1532,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

0 comments on commit 0b8943b

Please sign in to comment.