Browse Source

Fixed bug where incognito tabs are rememebered

master
Anthony Restaino 10 years ago
parent
commit
e042830e17
  1. 3
      src/acr/browser/lightning/BrowserActivity.java

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

@ -1161,7 +1161,8 @@ public class BrowserActivity extends ThemableActivity implements BrowserControll
if (reference == null) { if (reference == null) {
return; return;
} }
if (reference.getUrl() != null && !reference.getUrl().startsWith(Constants.FILE)) { if (reference.getUrl() != null && !reference.getUrl().startsWith(Constants.FILE)
&& !isIncognito()) {
mPreferences.setSavedUrl(reference.getUrl()); mPreferences.setSavedUrl(reference.getUrl());
} }
boolean isShown = reference.isShown(); boolean isShown = reference.isShown();

Loading…
Cancel
Save