Fix logic where only start pages should be excluded from close
This commit is contained in:
parent
0692625bb9
commit
a577049a9c
@ -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…
x
Reference in New Issue
Block a user