@capgo/inappbrowser 1.2.12 → 1.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -202,7 +202,7 @@ public class InAppBrowserPlugin extends Plugin {
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
);
|
|
205
|
-
getActivity()
|
|
205
|
+
this.getActivity()
|
|
206
206
|
.runOnUiThread(
|
|
207
207
|
new Runnable() {
|
|
208
208
|
@Override
|
|
@@ -222,7 +222,15 @@ public class InAppBrowserPlugin extends Plugin {
|
|
|
222
222
|
@PluginMethod
|
|
223
223
|
public void reload(PluginCall call) {
|
|
224
224
|
if (webViewDialog != null) {
|
|
225
|
-
|
|
225
|
+
this.getActivity()
|
|
226
|
+
.runOnUiThread(
|
|
227
|
+
new Runnable() {
|
|
228
|
+
@Override
|
|
229
|
+
public void run() {
|
|
230
|
+
webViewDialog.reload();
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
);
|
|
226
234
|
}
|
|
227
235
|
call.resolve();
|
|
228
236
|
}
|
|
@@ -230,12 +238,20 @@ public class InAppBrowserPlugin extends Plugin {
|
|
|
230
238
|
@PluginMethod
|
|
231
239
|
public void close(PluginCall call) {
|
|
232
240
|
if (webViewDialog != null) {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
241
|
+
this.getActivity()
|
|
242
|
+
.runOnUiThread(
|
|
243
|
+
new Runnable() {
|
|
244
|
+
@Override
|
|
245
|
+
public void run() {
|
|
246
|
+
notifyListeners(
|
|
247
|
+
"closeEvent",
|
|
248
|
+
new JSObject().put("url", webViewDialog.getUrl())
|
|
249
|
+
);
|
|
250
|
+
webViewDialog.dismiss();
|
|
251
|
+
webViewDialog = null;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
);
|
|
239
255
|
} else {
|
|
240
256
|
Intent intent = new Intent(
|
|
241
257
|
getContext(),
|