diff options
author | Marco Nelissen <marcone@google.com> | 2010-03-18 17:10:38 -0700 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2010-03-18 17:15:56 -0700 |
commit | abc2819328c32f2f66506d342c5f560da5107889 (patch) | |
tree | e52c1cd599d09413cf7ab321aaf8cba3d03094e7 /media | |
parent | b82ac6bf374c14082f7142614eb7d8e545b9a18b (diff) | |
download | frameworks_base-abc2819328c32f2f66506d342c5f560da5107889.zip frameworks_base-abc2819328c32f2f66506d342c5f560da5107889.tar.gz frameworks_base-abc2819328c32f2f66506d342c5f560da5107889.tar.bz2 |
Include "album artist" when inserting items in the media provider.
Change-Id: Ic34e2d54557409866dc35c29ee397afdfe874762
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) { |