aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src/github/daneren2005
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-07-17 09:10:21 -0700
committerdaneren2005 <daneren2005@gmail.com>2013-07-17 09:10:21 -0700
commitb9c368166807db3305abc89e3a17de111783d73f (patch)
tree07386d41be7a165a3c720b0d963befe1903bad5e /subsonic-android/src/github/daneren2005
parentfea413596d0a5624a0fb4b6712f7c9584282a879 (diff)
downloaddsub-b9c368166807db3305abc89e3a17de111783d73f.tar.gz
dsub-b9c368166807db3305abc89e3a17de111783d73f.tar.bz2
dsub-b9c368166807db3305abc89e3a17de111783d73f.zip
Before Podcast Channel is initialized, use podcast URL as name
Diffstat (limited to 'subsonic-android/src/github/daneren2005')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/view/PodcastChannelView.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/view/PodcastChannelView.java b/subsonic-android/src/github/daneren2005/dsub/view/PodcastChannelView.java
index b51eefb2..94eedf2c 100644
--- a/subsonic-android/src/github/daneren2005/dsub/view/PodcastChannelView.java
+++ b/subsonic-android/src/github/daneren2005/dsub/view/PodcastChannelView.java
@@ -57,7 +57,11 @@ public class PodcastChannelView extends UpdateView {
public void setPodcastChannel(PodcastChannel podcastChannel) {
channel = podcastChannel;
- titleView.setText(podcastChannel.getName());
+ if(podcastChannel.getName() != null) {
+ titleView.setText(podcastChannel.getName());
+ } else {
+ titleView.setText(podcastChannel.getUrl());
+ }
}
@Override