Skip to content

Commit

Permalink
Remove unused cast
Browse files Browse the repository at this point in the history
  • Loading branch information
natsuk4ze committed Aug 8, 2023
1 parent f91d1f3 commit 97570d7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions android/src/main/java/studio/midoridesign/gal/GalPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 97570d7

Please sign in to comment.