From e042830e176f571c1a54e97136f81d43481d7f69 Mon Sep 17 00:00:00 2001 From: Anthony Restaino Date: Mon, 27 Apr 2015 21:01:37 -0400 Subject: [PATCH] Fixed bug where incognito tabs are rememebered --- src/acr/browser/lightning/BrowserActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/acr/browser/lightning/BrowserActivity.java b/src/acr/browser/lightning/BrowserActivity.java index 81259ef..96cc433 100644 --- a/src/acr/browser/lightning/BrowserActivity.java +++ b/src/acr/browser/lightning/BrowserActivity.java @@ -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();