1
0
Fork 0

For #5025 - Do not remove custom tab session with config removed

master
Emily Kager 2019-09-04 16:40:41 -07:00 committed by Sebastian Kaspari
parent 23095ae274
commit a5e9da7a55
1 changed files with 4 additions and 1 deletions

View File

@ -52,7 +52,10 @@ open class CustomTabActivity : HomeActivity() {
// then there's no way to get back to it other than relaunching it.
val sessionId = getIntentSessionId(SafeIntent(intent))
components.core.sessionManager.runWithSession(sessionId) { session ->
remove(session)
// If the custom tag config has been removed we are opening this in normal browsing
if (session.customTabConfig != null) {
remove(session)
}
true
}
}