1
0
Fork 0

For #12966 - Fixes session removal show home logic

master
ekager 2020-07-27 12:30:30 -04:00 committed by Jeff Boek
parent 52de2b8f38
commit 1d604d327c
1 changed files with 3 additions and 1 deletions

View File

@ -831,7 +831,9 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Session
if (session.hasParentSession) {
sessionManager.remove(session, true)
}
val goToOverview = isLastSession || !session.hasParentSession
// We want to return to home if this removed session was the last session of its type
// and didn't have a parent session to select.
val goToOverview = isLastSession && !session.hasParentSession
!goToOverview
}
}