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

Commit eafd14c0 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal
Browse files

Eleven: Make unknown artist a translatable string

parent e00e47e4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -172,4 +172,6 @@
    <string name="duration_format"><xliff:g id="hours">%1$s</xliff:g> <xliff:g id="minutes">%2$s</xliff:g></string>

    <string name="channel_music">Music playback</string>

    <string name="unknown_metadata">Unknown</string>
</resources>
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ public class AlbumLoader extends SectionCreator.SimpleListLoader<Album> {
                }

                // Create a new album and add everything up
                final Album album = new Album(id, albumName, artist, songCount, year);
                final Album album = new Album(getContext(), id, albumName, artist, songCount, year);
                mAlbumsList.add(album);
            } while (cursor.moveToNext());
        }
+2 −1
Original line number Diff line number Diff line
@@ -88,7 +88,8 @@ public class AlbumSongLoader extends WrappedAsyncTaskLoader<List<Song>> {
                final int year = cursor.getInt(5);

                // Create a new song
                final Song song = new Song(id, songName, artist, album, mAlbumID, seconds, year);
                final Song song = new Song(getContext(), id, songName, artist, album, mAlbumID,
                        seconds, year);

                // Add everything up
                mSongList.add(song);
+2 −2
Original line number Diff line number Diff line
@@ -84,8 +84,8 @@ public class LastAddedLoader extends SectionCreator.SimpleListLoader<Song> {
                final int year = cursor.getInt(6);

                // Create a new song
                final Song song = new Song(id, songName, artist, album, albumId, durationInSecs,
                        year);
                final Song song = new Song(getContext(), id, songName, artist, album, albumId,
                        durationInSecs, year);

                // Add everything up
                mSongList.add(song);
+2 −2
Original line number Diff line number Diff line
@@ -150,8 +150,8 @@ public class PlaylistSongLoader extends WrappedAsyncTaskLoader<List<Song>> {
                        .getColumnIndexOrThrow(AudioColumns.YEAR));

                // Create a new song
                final Song song = new Song(id, songName, artist, album, albumId, durationInSecs,
                        year);
                final Song song = new Song(getContext(), id, songName, artist, album, albumId,
                        durationInSecs, year);

                // Add everything up
                mSongList.add(song);
Loading