diff options
author | owner <owner@DeeDee-Laptop> | 2012-11-21 22:03:22 -0800 |
---|---|---|
committer | owner <owner@DeeDee-Laptop> | 2012-11-21 22:03:22 -0800 |
commit | 2a4a56f035a57fa6a2a38718a1ca5023f361b0b9 (patch) | |
tree | a0100e3effeec707fd670b8ad9de712408273f15 | |
parent | 20a9b339b9231fca62bef2d1f0b37ce588b8918c (diff) | |
download | dsub-2a4a56f035a57fa6a2a38718a1ca5023f361b0b9.tar.gz dsub-2a4a56f035a57fa6a2a38718a1ca5023f361b0b9.tar.bz2 dsub-2a4a56f035a57fa6a2a38718a1ca5023f361b0b9.zip |
Fixed null (...) for all videos
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/view/SongView.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/view/SongView.java b/subsonic-android/src/github/daneren2005/dsub/view/SongView.java index f1701822..98ceebba 100644 --- a/subsonic-android/src/github/daneren2005/dsub/view/SongView.java +++ b/subsonic-android/src/github/daneren2005/dsub/view/SongView.java @@ -78,9 +78,13 @@ public class SongView extends UpdateView implements Checkable { fileFormat = song.getSuffix(); } - artist.append(song.getArtist()).append(" (") - .append(String.format(getContext().getString(R.string.song_details_all), bitRate == null ? "" : bitRate, fileFormat)) - .append(")"); + if(!song.isVideo()) { + artist.append(song.getArtist()).append(" (") + .append(String.format(getContext().getString(R.string.song_details_all), bitRate == null ? "" : bitRate, fileFormat)) + .append(")"); + } else { + artist.append(String.format(getContext().getString(R.string.song_details_all), bitRate == null ? "" : bitRate, fileFormat)); + } titleTextView.setText(song.getTitle()); artistTextView.setText(artist); |