We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a1c436 commit 1e16138Copy full SHA for 1e16138
1 file changed
sdk/src/main/kotlin/com/idme/auth/auth/IDmeRedirectActivity.kt
@@ -43,12 +43,13 @@ class IDmeRedirectActivity : Activity() {
43
44
private fun handleIntent() {
45
val uri = intent?.data
46
+ val target = IDmeAuthManager.callingActivity?.get()
47
if (uri != null) {
48
IDmeAuthManager.handleRedirect(uri.toString())
49
} else {
50
IDmeAuthManager.handleCancel()
51
}
- IDmeAuthManager.callingActivity?.get()?.let { activity ->
52
+ target?.let { activity ->
53
val intent = Intent(this, activity::class.java).apply {
54
flags = Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_SINGLE_TOP
55
0 commit comments