Fixed bug where incognito tabs are rememebered

This commit is contained in:
Anthony Restaino 2015-04-27 21:01:37 -04:00
parent 4711fa696a
commit e042830e17

View File

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