// Get the previous entry URL.
String previousUrl = webBackForwardList.getItemAtIndex(webBackForwardList.getCurrentIndex() - 1).getUrl();
- // Reset the current domain name so that navigation works if third-party requests are blocked.
- currentWebView.resetCurrentDomainName();
-
// Apply the domain settings.
applyDomainSettings(currentWebView, previousUrl, false, false);
// Get the next entry URL.
String nextUrl = webBackForwardList.getItemAtIndex(webBackForwardList.getCurrentIndex() + 1).getUrl();
- // Reset the current domain name so that navigation works if third-party requests are blocked.
- currentWebView.resetCurrentDomainName();
-
// Apply the domain settings.
applyDomainSettings(currentWebView, nextUrl, false, false);
// Get the previous entry URL.
String previousUrl = webBackForwardList.getItemAtIndex(webBackForwardList.getCurrentIndex() - 1).getUrl();
- // Reset the current domain name so that navigation works if third-party requests are blocked.
- currentWebView.resetCurrentDomainName();
-
// Apply the domain settings.
applyDomainSettings(currentWebView, previousUrl, false, false);
@Override
public void navigateHistory(String url, int steps) {
- // Reset the current domain name so that navigation works if third-party requests are blocked.
- currentWebView.resetCurrentDomainName();
-
// Apply the domain settings.
applyDomainSettings(currentWebView, url, false, false);
// Get the previous entry URL.
String previousUrl = webBackForwardList.getItemAtIndex(webBackForwardList.getCurrentIndex() - 1).getUrl();
- // Reset the current domain name so that navigation works if third-party requests are blocked.
- currentWebView.resetCurrentDomainName();
-
// Apply the domain settings.
applyDomainSettings(currentWebView, previousUrl, false, false);