Browse Source

Fix logic where only start pages should be excluded from close

master
anthony restaino 8 years ago
parent
commit
a577049a9c
  1. 2
      app/src/main/java/acr/browser/lightning/browser/BrowserPresenter.java

2
app/src/main/java/acr/browser/lightning/browser/BrowserPresenter.java

@ -165,7 +165,7 @@ public class BrowserPresenter { @@ -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;

Loading…
Cancel
Save