2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00

[fenix] For https://github.com/mozilla-mobile/fenix/issues/5025 - Do not remove custom tab session with config removed

This commit is contained in:
Emily Kager 2019-09-04 16:40:41 -07:00 committed by Sebastian Kaspari
parent d0fa780907
commit a4172aafae

View File

@ -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 ->
// If the custom tag config has been removed we are opening this in normal browsing
if (session.customTabConfig != null) {
remove(session) remove(session)
}
true true
} }
} }