diff options
Diffstat (limited to 'media')
-rw-r--r-- | media/java/android/media/MediaScanner.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/media/java/android/media/MediaScanner.java b/media/java/android/media/MediaScanner.java index 1047fa4..e9bcafe 100644 --- a/media/java/android/media/MediaScanner.java +++ b/media/java/android/media/MediaScanner.java @@ -634,7 +634,11 @@ public class MediaScanner } else if (MediaFile.isImageFileType(mFileType)) { // FIXME - add DESCRIPTION } else if (MediaFile.isAudioFileType(mFileType)) { - map.put(Audio.Media.ARTIST, (mArtist != null && mArtist.length() > 0 ? mArtist : MediaStore.UNKNOWN_STRING)); + String artist = mArtist != null && mArtist.length() > 0 ? + mArtist : MediaStore.UNKNOWN_STRING; + map.put(Audio.Media.ARTIST, artist); + map.put(Audio.Media.ALBUM_ARTIST, mAlbumArtist != null && + mAlbumArtist.length() > 0 ? mAlbumArtist : artist); map.put(Audio.Media.ALBUM, (mAlbum != null && mAlbum.length() > 0 ? mAlbum : MediaStore.UNKNOWN_STRING)); map.put(Audio.Media.COMPOSER, mComposer); if (mYear != 0) { |