Made the artist info string prettier.

This commit is contained in:
Karim Abou Zeid 2016-03-27 16:10:23 +02:00
commit 9c84d59d89
2 changed files with 1 additions and 4 deletions

View file

@ -92,7 +92,7 @@ public class MusicUtil {
public static String getArtistInfoString(@NonNull final Context context, @NonNull final Artist artist) {
String albumString = artist.albumCount == 1 ? context.getResources().getString(R.string.album) : context.getResources().getString(R.string.albums);
String songString = artist.songCount == 1 ? context.getResources().getString(R.string.song) : context.getResources().getString(R.string.songs);
return artist.albumCount + " " + albumString + " | " + artist.songCount + " " + songString;
return artist.albumCount + " " + albumString + " " + artist.songCount + " " + songString;
}
public static String getReadableDurationString(long songDurationMillis) {