For #12966 - Fixes session removal show home logic
parent
52de2b8f38
commit
1d604d327c
|
@ -831,7 +831,9 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Session
|
||||||
if (session.hasParentSession) {
|
if (session.hasParentSession) {
|
||||||
sessionManager.remove(session, true)
|
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
|
!goToOverview
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue