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

Commit 55973f1a authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Fix bug that would cause files with blank title tags to not be shown in the music app.

parent 37b939a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -657,7 +657,7 @@ public class MediaScanner

            ContentValues values = toValues();
            String title = values.getAsString(MediaStore.MediaColumns.TITLE);
            if (TextUtils.isEmpty(title)) {
            if (TextUtils.isEmpty(title.trim())) {
                title = values.getAsString(MediaStore.MediaColumns.DATA);
                // extract file name after last slash
                int lastSlash = title.lastIndexOf('/');