diff --git a/android/src/main/java/com/projectseptember/RNGL/GLCanvas.java b/android/src/main/java/com/projectseptember/RNGL/GLCanvas.java index 958fb5421d2fa5cfd338b43ed8a36e61c82a0498..54fd4a930c37e4df1773645cc010e2a1756d4de1 100644 --- a/android/src/main/java/com/projectseptember/RNGL/GLCanvas.java +++ b/android/src/main/java/com/projectseptember/RNGL/GLCanvas.java @@ -205,7 +205,7 @@ public class GLCanvas if (preloadingDone) return; List imagesToPreload = new ArrayList<>(); for (int i=0; i { - private final File mImageFile; - - public LoadImageFileTask(GLImage gpuImage, File file) { - super(gpuImage); - mImageFile = file; - } - - @Override - protected Bitmap decode(BitmapFactory.Options options) { - return BitmapFactory.decodeFile(mImageFile.getAbsolutePath(), options); - } - - @Override - protected int getImageOrientation() throws IOException { - ExifInterface exif = new ExifInterface(mImageFile.getAbsolutePath()); - int orientation = exif.getAttributeInt(ExifInterface.TAG_ORIENTATION, 1); - switch (orientation) { - case ExifInterface.ORIENTATION_NORMAL: - return 0; - case ExifInterface.ORIENTATION_ROTATE_90: - return 90; - case ExifInterface.ORIENTATION_ROTATE_180: - return 180; - case ExifInterface.ORIENTATION_ROTATE_270: - return 270; - default: - return 0; - } - } - } - */ - - private abstract class LoadImageTask extends AsyncTask { - - private GLImage glImage; + protected GLImage glImage; public LoadImageTask (GLImage glImage) { this.glImage = glImage;