From a577049a9c5c6bd85ace7c6c478610bd128a52b9 Mon Sep 17 00:00:00 2001 From: anthony restaino Date: Sat, 27 May 2017 13:38:41 -0400 Subject: [PATCH] Fix logic where only start pages should be excluded from close --- .../java/acr/browser/lightning/browser/BrowserPresenter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/acr/browser/lightning/browser/BrowserPresenter.java b/app/src/main/java/acr/browser/lightning/browser/BrowserPresenter.java index 8aa1e5b..5ccfa72 100644 --- a/app/src/main/java/acr/browser/lightning/browser/BrowserPresenter.java +++ b/app/src/main/java/acr/browser/lightning/browser/BrowserPresenter.java @@ -165,7 +165,7 @@ public class BrowserPresenter { boolean shouldClose = mShouldClose && isShown && tabToDelete.isNewTab(); final LightningView currentTab = mTabsModel.getCurrentTab(); if (mTabsModel.size() == 1 && currentTab != null && - (UrlUtils.isSpecialUrl(currentTab.getUrl()) || + (UrlUtils.isStartPageUrl(currentTab.getUrl()) || currentTab.getUrl().equals(mPreferences.getHomepage()))) { mView.closeActivity(); return;