Ensure the Custom Chrome tab is removed from the backstack (#708)

This commit is contained in:
Brian Yencho 2024-01-22 10:20:24 -06:00 committed by Álison Fernandes
parent 8baf88be47
commit 83b77730f5

View file

@ -24,9 +24,12 @@ class WebAuthCallbackActivity : AppCompatActivity() {
val intent = Intent(this, MainActivity::class.java)
.apply {
addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT)
addFlags(
Intent.FLAG_ACTIVITY_CLEAR_TOP or
Intent.FLAG_ACTIVITY_SINGLE_TOP,
)
}
startActivity(intent)
finishAffinity()
finish()
}
}