From a128a18fea312abfb3b046d895a2f491cf559003 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 9 Jan 2013 19:32:13 -0800 Subject: Added details option to videos --- subsonic-android/res/menu/select_video_context.xml | 13 ++++--------- subsonic-android/res/menu/select_video_context_offline.xml | 4 ++++ .../daneren2005/dsub/activity/SelectAlbumActivity.java | 2 +- .../daneren2005/dsub/activity/SubsonicTabActivity.java | 6 +++++- 4 files changed, 14 insertions(+), 11 deletions(-) (limited to 'subsonic-android') diff --git a/subsonic-android/res/menu/select_video_context.xml b/subsonic-android/res/menu/select_video_context.xml index ccc1600d..7a45d34a 100644 --- a/subsonic-android/res/menu/select_video_context.xml +++ b/subsonic-android/res/menu/select_video_context.xml @@ -1,5 +1,9 @@ + + @@ -18,16 +22,7 @@ android:title="@string/common.download" /> - - - - diff --git a/subsonic-android/res/menu/select_video_context_offline.xml b/subsonic-android/res/menu/select_video_context_offline.xml index 4aec257f..fc354119 100644 --- a/subsonic-android/res/menu/select_video_context_offline.xml +++ b/subsonic-android/res/menu/select_video_context_offline.xml @@ -1,5 +1,9 @@ + + diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java index 9ddaecf3..be6ce059 100644 --- a/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java +++ b/subsonic-android/src/github/daneren2005/dsub/activity/SelectAlbumActivity.java @@ -262,7 +262,7 @@ public class SelectAlbumActivity extends SubsonicTabActivity { inflater.inflate(R.menu.select_video_context, menu); } - if (!Util.isOffline(this)) { + if (!Util.isOffline(this) && !entry.isVideo()) { menu.findItem(entry.isDirectory() ? R.id.album_menu_star : R.id.song_menu_star).setTitle(entry.isStarred() ? R.string.common_unstar : R.string.common_star); } } diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java index 75c03be0..054e054d 100644 --- a/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java +++ b/subsonic-android/src/github/daneren2005/dsub/activity/SubsonicTabActivity.java @@ -503,7 +503,11 @@ public class SubsonicTabActivity extends SherlockActivity { } public void displaySongInfo(final MusicDirectory.Entry song) { - String msg = "Artist: " + song.getArtist() + "\nAlbum: " + song.getAlbum(); + + String msg = ""; + if(!song.isVideo()) { + msg += "Artist: " + song.getArtist() + "\nAlbum: " + song.getAlbum(); + } if(song.getGenre() != null && !song.getGenre().isEmpty()) { msg += "\nGenre: " + song.getGenre(); } -- cgit v1.2.3