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

Commit be2d6d68 authored by Yu Feng's avatar Yu Feng Committed by Steve Kondik
Browse files

save album artist to the ContentValues object.

parent b17b2987
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -802,6 +802,15 @@ public final class MediaStore {
             */
            public static final String ARTIST = "artist";

            /**
             * @hide
             * The artist who created the audio album, if any
             *  [ it does not get into the database yet, so hidden from
             *  public API ]
             *  <P>Type: TEXT</P>
             */
            public static final String ALBUM_ARTIST = "album_artist";
            
            /**
             * A non human readable key calculated from the ARTIST, used for
             * searching, sorting and grouping
+1 −0
Original line number Diff line number Diff line
@@ -656,6 +656,7 @@ public class MediaScanner
                map.put(Images.Media.DATE_TAKEN, mLastModified * 1000);
            } else if (MediaFile.isAudioFileType(mFileType)) {
                map.put(Audio.Media.ARTIST, (mArtist != null && mArtist.length() > 0 ? mArtist : MediaFile.UNKNOWN_STRING));
                map.put(Audio.Media.ALBUM_ARTIST, (mAlbumArtist != null && mAlbumArtist.length() > 0 ? mAlbumArtist : MediaFile.UNKNOWN_STRING));
                map.put(Audio.Media.ALBUM, (mAlbum != null && mAlbum.length() > 0 ? mAlbum : MediaFile.UNKNOWN_STRING));
                map.put(Audio.Media.COMPOSER, mComposer);
                if (mYear != 0) {