From 677dfd5f520b00dcbed1e5a7614550e2ac835559 Mon Sep 17 00:00:00 2001 From: Szymon20000 Date: Fri, 16 Nov 2018 15:06:33 +0100 Subject: [PATCH] [android] Fix invalid casting of quality option in Camera (#2692) * Fixed wrong type casting * Add CHANGELOG entry --- .../camera/tasks/ResolveTakenPictureAsyncTask.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/expo/modules/camera/tasks/ResolveTakenPictureAsyncTask.java b/android/src/main/java/expo/modules/camera/tasks/ResolveTakenPictureAsyncTask.java index 14b228dac040d..ce7a765a7c915 100644 --- a/android/src/main/java/expo/modules/camera/tasks/ResolveTakenPictureAsyncTask.java +++ b/android/src/main/java/expo/modules/camera/tasks/ResolveTakenPictureAsyncTask.java @@ -42,6 +42,8 @@ public class ResolveTakenPictureAsyncTask extends AsyncTask private static final String URI_KEY = "uri"; private static final String ID_KEY = "id"; + private static final int DEFAULT_QUALITY = 1; + private Promise mPromise; private byte[] mImageData; private Bitmap mBitmap; @@ -66,7 +68,12 @@ public ResolveTakenPictureAsyncTask(Bitmap bitmap, Promise promise, Map