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

Commit 0b8943b

Browse files
keianhzobluemarvin
authored andcommitted
Make the UI react faster to page loads (#2113)
1 parent 56c3c84 commit 0b8943b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,6 +1506,14 @@ public void onVideoAvailabilityChanged(boolean aVideosAvailable) {
15061506
@Override
15071507
public void onPageStart(@NonNull GeckoSession geckoSession, @NonNull String s) {
15081508
mCaptureOnPageStop = true;
1509+
1510+
if (isHistoryVisible()) {
1511+
hideHistory();
1512+
}
1513+
1514+
if (isBookmarksVisible()) {
1515+
hideBookmarks();
1516+
}
15091517
}
15101518

15111519
@Override
@@ -1524,13 +1532,6 @@ public void captureImage() {
15241532

15251533
@Override
15261534
public void onLocationChange(@NonNull GeckoSession session, @Nullable String url) {
1527-
if (isBookmarksVisible()) {
1528-
hideBookmarks();
1529-
1530-
} else if (isHistoryVisible()) {
1531-
hideHistory();
1532-
}
1533-
15341535
updateTitleBarUrl(url);
15351536
}
15361537

0 commit comments

Comments
 (0)