NTP-50922: PL Web | CCT Redirection Enhancements (#15541)

This commit is contained in:
Raaj Gopal
2025-03-27 18:14:42 +05:30
committed by GitHub
parent 783c45c7a4
commit 0069cec987

View File

@@ -192,11 +192,9 @@ class WebRedirectionTransparentActivity : BaseActivity() {
.setShowTitle(false)
.build()
customTabsIntent.intent.setFlags(
Intent.FLAG_ACTIVITY_NO_HISTORY or
Intent.FLAG_ACTIVITY_NEW_TASK or
Intent.FLAG_ACTIVITY_SINGLE_TOP
Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP
)
customTabsIntent.launchUrl(this, Uri.parse(url))
customTabsIntent.launchUrl(this@WebRedirectionTransparentActivity, Uri.parse(url))
finish()
} else {
/** Fallback to opening the Url in browser, if custom tab is not available * */