You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (customTabsConnectionHelper.coolDown(processedPackageName)) {
69
-
val result =Bundle()
68
+
val result =Arguments.createMap()
70
69
result.putString(
71
70
SERVICE_PACKAGE_KEY,
72
71
processedPackageName
73
72
)
74
73
promise.resolve(result)
75
74
} else {
76
-
promise.resolve(Bundle())
75
+
promise.resolve(Arguments.createMap())
77
76
}
78
77
} catch (ex:NoPreferredPackageFound) {
79
78
promise.reject(ex)
@@ -93,7 +92,7 @@ class NativeWebBrowserModule(reactContext: ReactApplicationContext) :
93
92
processedPackageName,
94
93
Uri.parse(url)
95
94
)
96
-
val result =Bundle()
95
+
val result =Arguments.createMap()
97
96
result.putString(
98
97
SERVICE_PACKAGE_KEY,
99
98
processedPackageName
@@ -121,7 +120,7 @@ class NativeWebBrowserModule(reactContext: ReactApplicationContext) :
121
120
if (activities.contains(defaultPackage)) { // It might happen, that default activity does not support Chrome Tabs. Then it will be ResolvingActivity and we don't want to return it as a result.
122
121
defaultCustomTabsPackage = defaultPackage
123
122
}
124
-
val result =Bundle()
123
+
val result =Arguments.createMap()
125
124
result.putStringArrayList(
126
125
BROWSER_PACKAGES_KEY,
127
126
activities
@@ -168,7 +167,7 @@ class NativeWebBrowserModule(reactContext: ReactApplicationContext) :
168
167
try {
169
168
if (customTabsActivitiesHelper.canResolveIntent(intent)) {
0 commit comments