For #5025 - Do not remove custom tab session with config removed
parent
23095ae274
commit
a5e9da7a55
|
@ -52,7 +52,10 @@ open class CustomTabActivity : HomeActivity() {
|
||||||
// then there's no way to get back to it other than relaunching it.
|
// then there's no way to get back to it other than relaunching it.
|
||||||
val sessionId = getIntentSessionId(SafeIntent(intent))
|
val sessionId = getIntentSessionId(SafeIntent(intent))
|
||||||
components.core.sessionManager.runWithSession(sessionId) { session ->
|
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
|
true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue