Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f189fa0 authored by Marco Nelissen's avatar Marco Nelissen
Browse files
parent bd1e8aa5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -344,7 +344,10 @@ public final class MediaStore
                // Check if file exists with a FileInputStream
                FileInputStream stream = new FileInputStream(imagePath);
                try {
                    return insertImage(cr, BitmapFactory.decodeFile(imagePath), name, description);
                    Bitmap bm = BitmapFactory.decodeFile(imagePath);
                    String ret = insertImage(cr, bm, name, description);
                    bm.recycle();
                    return ret;
                } finally {
                    try {
                        stream.close();