diff --git a/src/acr/browser/lightning/BrowserActivity.java b/src/acr/browser/lightning/BrowserActivity.java index 1f7fbb6..d74eda1 100644 --- a/src/acr/browser/lightning/BrowserActivity.java +++ b/src/acr/browser/lightning/BrowserActivity.java @@ -1770,6 +1770,7 @@ public class BrowserActivity extends Activity implements BrowserController { getUrl.setAdapter(mSearchAdapter); } + @Override public boolean isIncognito() { return false; } diff --git a/src/acr/browser/lightning/BrowserController.java b/src/acr/browser/lightning/BrowserController.java index f6b2f6d..5cc4a94 100644 --- a/src/acr/browser/lightning/BrowserController.java +++ b/src/acr/browser/lightning/BrowserController.java @@ -49,4 +49,6 @@ public interface BrowserController { public boolean isActionBarShowing(); public void closeEmptyTab(); + + public boolean isIncognito(); } diff --git a/src/acr/browser/lightning/LightningView.java b/src/acr/browser/lightning/LightningView.java index 51a7eee..47df3c1 100644 --- a/src/acr/browser/lightning/LightningView.java +++ b/src/acr/browser/lightning/LightningView.java @@ -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); }