For #12966 - Fixes session removal show home logic

releases/v80.0.0
ekager 4 years ago committed by Jeff Boek
parent 52de2b8f38
commit 1d604d327c

@ -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
}
}

Loading…
Cancel
Save