Skip to content

Commit ebe1046

Browse files
authored
Merge pull request #182 from xmartlabs/react-native-compatibility
[Fix] Update ActivityEventListener method signatures to match interface
2 parents bc1e73a + 6960fcf commit ebe1046

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/java/com/xmartlabs/line/LineLoginModule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ class LineLoginModule(private val reactContext: ReactApplicationContext) :
4646
channelId = args.getString("channelId")!!
4747
lineApiClient = LineApiClientBuilder(reactContext.applicationContext, channelId).build()
4848
reactContext.addActivityEventListener(object : ActivityEventListener {
49-
override fun onNewIntent(intent: Intent?) {}
49+
override fun onNewIntent(intent: Intent) {}
5050
override fun onActivityResult(
51-
activity: Activity?,
51+
activity: Activity,
5252
requestCode: Int,
5353
resultCode: Int,
5454
data: Intent?

0 commit comments

Comments
 (0)