Skip to content

Commit 1e16138

Browse files
authored
Force window close
Auto close verification window
1 parent 1a1c436 commit 1e16138

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sdk/src/main/kotlin/com/idme/auth/auth/IDmeRedirectActivity.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ class IDmeRedirectActivity : Activity() {
4343

4444
private fun handleIntent() {
4545
val uri = intent?.data
46+
val target = IDmeAuthManager.callingActivity?.get()
4647
if (uri != null) {
4748
IDmeAuthManager.handleRedirect(uri.toString())
4849
} else {
4950
IDmeAuthManager.handleCancel()
5051
}
51-
IDmeAuthManager.callingActivity?.get()?.let { activity ->
52+
target?.let { activity ->
5253
val intent = Intent(this, activity::class.java).apply {
5354
flags = Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_SINGLE_TOP
5455
}

0 commit comments

Comments
 (0)