Commit c9a440c5 authored by Lorenzo Pichilli's avatar Lorenzo Pichilli Committed by GitHub

Update ChromeSafariBrowserManager.java

parent 4b249015
......@@ -33,19 +33,19 @@ public class ChromeSafariBrowserManager implements MethodChannel.MethodCallHandl
@Override
public void onMethodCall(final MethodCall call, final MethodChannel.Result result) {
final Activity activity = Shared.activity;
final String uuid = call.argument("uuid");
final String uuid = (String) call.argument("uuid");
switch (call.method) {
case "open":
{
String url = call.argument("url");
HashMap<String, Object> options = call.argument("options");
List<HashMap<String, Object>> menuItemList = call.argument("menuItemList");
String uuidFallback = call.argument("uuidFallback");
Map<String, String> headersFallback = call.argument("headersFallback");
HashMap<String, Object> optionsFallback = call.argument("optionsFallback");
HashMap<String, Object> contextMenuFallback = call.argument("contextMenuFallback");
Integer windowIdFallback = call.argument("windowIdFallback");
String url = (String) call.argument("url");
HashMap<String, Object> options = (HashMap<String, Object>) call.argument("options");
List<HashMap<String, Object>> menuItemList = (List<HashMap<String, Object>>) call.argument("menuItemList");
String uuidFallback = (String) call.argument("uuidFallback");
Map<String, String> headersFallback = (Map<String, String>) call.argument("headersFallback");
HashMap<String, Object> optionsFallback = (HashMap<String, Object>) call.argument("optionsFallback");
HashMap<String, Object> contextMenuFallback = (HashMap<String, Object>) call.argument("contextMenuFallback");
Integer windowIdFallback = (Integer) call.argument("windowIdFallback");
open(activity, uuid, url, options, menuItemList, uuidFallback, headersFallback, optionsFallback, contextMenuFallback, windowIdFallback, result);
}
break;
......@@ -71,7 +71,7 @@ public class ChromeSafariBrowserManager implements MethodChannel.MethodCallHandl
extras.putSerializable("menuItemList", (Serializable) menuItemList);
extras.putSerializable("headers", (Serializable) headersFallback);
extras.putSerializable("contextMenu", contextMenuFallback);
extras.putSerializable("contextMenu", (Serializable) contextMenuFallback);
extras.putInt("windowId", windowIdFallback != null ? windowIdFallback : -1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment