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

Commit

Permalink
Disable reload button in private mode (#3621)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored and bluemarvin committed Jul 6, 2020
1 parent 65b1a59 commit e7aec62
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -880,10 +880,12 @@ private void closeFloatingMenus() {
// NavigationDelegate

@Override
public void onLocationChange(@NonNull GeckoSession geckoSession, @Nullable String s) {
public void onLocationChange(@NonNull GeckoSession geckoSession, @Nullable String url) {
if (getSession() != null && getSession().getGeckoSession() == geckoSession) {
updateTrackingProtection();
}

mBinding.navigationBarNavigation.reloadButton.setEnabled(!UrlUtils.isPrivateAboutPage(getContext(), url));
}

// Content delegate
Expand Down

0 comments on commit e7aec62

Please sign in to comment.