Skip to content

Commit 3c56125

Browse files
WMSDK-539: fix MindboxSdkLifecycleListener
1 parent bb2a716 commit 3c56125

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

android/src/main/java/com/mindboxsdk/MindboxSdkLifecycleListener.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ internal class MindboxSdkLifecycleListener private constructor(
105105
activityEventListener?.let { reactContext.removeActivityEventListener(it) }
106106

107107
activityEventListener = object : ActivityEventListener {
108-
override fun onNewIntent(intent: Intent?) {
109-
intent ?: return
108+
override fun onNewIntent(intent: Intent) {
110109
reactContext.currentActivity
111110
?.takeIf { isMainActivity(it) }
112111
?.let {
@@ -120,7 +119,7 @@ internal class MindboxSdkLifecycleListener private constructor(
120119
}
121120

122121
override fun onActivityResult(
123-
activity: Activity?, requestCode: Int, resultCode: Int, data: Intent?
122+
activity: Activity, requestCode: Int, resultCode: Int, data: Intent?
124123
) {
125124
}
126125
}

0 commit comments

Comments
 (0)