Merge change 7581 into donut
* changes: Fix bug that would cause files with blank title tags to not be shown in the music app.
This commit is contained in:
@@ -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('/');
|
||||
|
||||
Reference in New Issue
Block a user