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

Commit bced934d authored by Gil Dobjanschi's avatar Gil Dobjanschi Committed by Android (Google) Code Review
Browse files

Merge "Hide project media by creating the .nomedia file"

parents ee7e28e2 ce52d1ff
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -63,6 +63,12 @@ public class VideoEditorFactory {
        if (!dir.exists()) {
            if (!dir.mkdirs()) {
                throw new FileNotFoundException("Cannot create project path: " + projectPath);
            } else {
                // Create the file which hides the media files
                // from the media scanner
                if (!new File(dir, ".nomedia").createNewFile()) {
                    throw new FileNotFoundException("Cannot create file .nomedia");
                }
            }
        }