diff --git a/android/src/main/java/studio/midoridesign/gal/GalPlugin.java b/android/src/main/java/studio/midoridesign/gal/GalPlugin.java index 34b85135..8467be9f 100644 --- a/android/src/main/java/studio/midoridesign/gal/GalPlugin.java +++ b/android/src/main/java/studio/midoridesign/gal/GalPlugin.java @@ -66,7 +66,7 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) { new Thread(() -> { try { putMedia(pluginBinding.getApplicationContext(), - (String) call.argument("path"), call.method.contains("Image")); + call.argument("path"), call.method.contains("Image")); new Handler(Looper.getMainLooper()).post(() -> result.success(null)); } catch (Exception e) { handleError(e, result); @@ -77,8 +77,7 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) { case "putImageBytes": { new Thread(() -> { try { - putMediaBytes(pluginBinding.getApplicationContext(), - (byte[]) call.argument("bytes")); + putMediaBytes(pluginBinding.getApplicationContext(), call.argument("bytes")); new Handler(Looper.getMainLooper()).post(() -> result.success(null)); } catch (Exception e) { handleError(e, result);