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

Commit 5b3f4578 authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by Android Git Automerger
Browse files

am 58d19d1f: Merge change 7581 into donut

Merge commit '58d19d1f'

* commit '58d19d1f':
  Fix bug that would cause files with blank title tags to not be shown in the music app.
parents 8e9bad1a 58d19d1f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -663,7 +663,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('/');