From 97570d7602ee9490236e1f360c9f9d55f0fc86ea Mon Sep 17 00:00:00 2001 From: Midori Date: Tue, 8 Aug 2023 11:31:13 +0900 Subject: [PATCH] Remove unused cast --- android/src/main/java/studio/midoridesign/gal/GalPlugin.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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);