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

Commit 5fb4cab2 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 5787 into donut

parents b8a10fe4 2f189fa0
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();