Skip to content

Commit

Permalink
Fixed wrong type casting
Browse files Browse the repository at this point in the history
  • Loading branch information
szymon committed Nov 12, 2018
1 parent 75409e5 commit 328c9a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public ResolveTakenPictureAsyncTask(Bitmap bitmap, Promise promise, Map<String,
}

private int getQuality() {
return ((Number) mOptions.get(QUALITY_KEY)).intValue() * 100;
return (int)(((double) mOptions.get(QUALITY_KEY)) * 100);
}

@Override
Expand Down

0 comments on commit 328c9a6

Please sign in to comment.