fix createScaledBitmap reference

This commit is contained in:
Akinwale Ariwodola 2019-06-28 11:05:51 +01:00
parent d821a7cc91
commit 9db3a88b1a

View file

@ -141,7 +141,7 @@ public class GalleryModule extends ReactContextBaseJavaModule {
try {
Bitmap source = BitmapFactory.decodeFile(filePath);
// MINI_KIND dimensions
Bitmap thumbnail = BitmapFactory.createScaledBitmap(source, 512, 384, false);
Bitmap thumbnail = Bitmap.createScaledBitmap(source, 512, 384, false);
if (context != null) {
File cacheDir = context.getExternalCacheDir();