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

Commit e7aec62

Browse files
keianhzobluemarvin
authored andcommitted
Disable reload button in private mode (#3621)
1 parent 65b1a59 commit e7aec62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,10 +880,12 @@ private void closeFloatingMenus() {
880880
// NavigationDelegate
881881

882882
@Override
883-
public void onLocationChange(@NonNull GeckoSession geckoSession, @Nullable String s) {
883+
public void onLocationChange(@NonNull GeckoSession geckoSession, @Nullable String url) {
884884
if (getSession() != null && getSession().getGeckoSession() == geckoSession) {
885885
updateTrackingProtection();
886886
}
887+
888+
mBinding.navigationBarNavigation.reloadButton.setEnabled(!UrlUtils.isPrivateAboutPage(getContext(), url));
887889
}
888890

889891
// Content delegate

0 commit comments

Comments
 (0)