Browse Source

Fixed: Stay inside incognito mode even when URL could be loaded externally

master
Anthony Restaino 10 years ago
parent
commit
b9aed893ef
  1. 1
      src/acr/browser/lightning/BrowserActivity.java
  2. 2
      src/acr/browser/lightning/BrowserController.java
  3. 3
      src/acr/browser/lightning/LightningView.java

1
src/acr/browser/lightning/BrowserActivity.java

@ -1770,6 +1770,7 @@ public class BrowserActivity extends Activity implements BrowserController { @@ -1770,6 +1770,7 @@ public class BrowserActivity extends Activity implements BrowserController {
getUrl.setAdapter(mSearchAdapter);
}
@Override
public boolean isIncognito() {
return false;
}

2
src/acr/browser/lightning/BrowserController.java

@ -49,4 +49,6 @@ public interface BrowserController { @@ -49,4 +49,6 @@ public interface BrowserController {
public boolean isActionBarShowing();
public void closeEmptyTab();
public boolean isIncognito();
}

3
src/acr/browser/lightning/LightningView.java

@ -844,6 +844,9 @@ public class LightningView { @@ -844,6 +844,9 @@ public class LightningView {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
if (mBrowserController.isIncognito()) {
return super.shouldOverrideUrlLoading(view, url);
}
if (url.startsWith("about:")) {
return super.shouldOverrideUrlLoading(view, url);
}

Loading…
Cancel
Save