Skip to content

Commit 3dc7631

Browse files
fix: support for RN 0.80 (#1084)
1 parent 6e14e85 commit 3dc7631

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/android/src/main/java/com/segmentanalyticsreactnative/AnalyticsReactNativeModule.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class AnalyticsReactNativeModule : ReactContextBaseJavaModule, ActivityEventList
161161

162162
contextInfo.putString("timezone", timezone.id)
163163
contextInfo.putString("locale", locale)
164-
contextInfo.putString("networkType", connectionType.toString().toLowerCase(currentLocale))
164+
contextInfo.putString("networkType", connectionType.toString().lowercase(currentLocale))
165165

166166
contextInfo.putString("osName", "Android")
167167
contextInfo.putString("osVersion", Build.VERSION.RELEASE)
@@ -239,11 +239,11 @@ class AnalyticsReactNativeModule : ReactContextBaseJavaModule, ActivityEventList
239239
}
240240
}
241241

242-
override fun onActivityResult(activity: Activity?, requestCode: Int, resultCode: Int, data: Intent?) {
242+
override fun onActivityResult(activity: Activity, requestCode: Int, resultCode: Int, data: Intent?) {
243243
// Do nothing
244244
}
245245

246-
override fun onNewIntent(intent: Intent?) {
246+
override fun onNewIntent(intent: Intent) {
247247
Log.d(name, "onNewIntent = ${intent}")
248248
trackDeepLinks(intent)
249249
}

0 commit comments

Comments
 (0)