aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-10-01 20:56:04 -0700
committerScott Jackson <daneren2005@gmail.com>2012-10-01 20:56:04 -0700
commit44d87d2e7a034046c107dbb182e0958d63fff54d (patch)
treeb16d9e2a09c8e9a8ef3bf07c00c66d73de49aa3d /subsonic-android/src
parent583ec993f0bfb838b369d9c25e8a4b519d644da4 (diff)
downloaddsub-44d87d2e7a034046c107dbb182e0958d63fff54d.tar.gz
dsub-44d87d2e7a034046c107dbb182e0958d63fff54d.tar.bz2
dsub-44d87d2e7a034046c107dbb182e0958d63fff54d.zip
Revert last commit
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java7
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java5
2 files changed, 10 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java b/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java
index 2fab77e7..b94dca6b 100644
--- a/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java
+++ b/subsonic-android/src/github/daneren2005/dsub/activity/MainActivity.java
@@ -79,6 +79,7 @@ public class MainActivity extends SubsonicTabActivity {
final View albumsHighestButton = buttons.findViewById(R.id.main_albums_highest);
final View albumsRecentButton = buttons.findViewById(R.id.main_albums_recent);
final View albumsFrequentButton = buttons.findViewById(R.id.main_albums_frequent);
+ final View albumsStarredButton = buttons.findViewById(R.id.main_albums_starred);
final View dummyView = findViewById(R.id.main_dummy);
@@ -92,7 +93,7 @@ public class MainActivity extends SubsonicTabActivity {
adapter.addViews(Arrays.asList(serverButton), true);
if (!Util.isOffline(this)) {
adapter.addView(albumsTitle, false);
- adapter.addViews(Arrays.asList(albumsNewestButton, albumsRandomButton, albumsHighestButton, albumsRecentButton, albumsFrequentButton), true);
+ adapter.addViews(Arrays.asList(albumsNewestButton, albumsRandomButton, albumsHighestButton, albumsStarredButton, albumsRecentButton, albumsFrequentButton), true);
}
list.setAdapter(adapter);
registerForContextMenu(dummyView);
@@ -112,7 +113,9 @@ public class MainActivity extends SubsonicTabActivity {
showAlbumList("recent");
} else if (view == albumsFrequentButton) {
showAlbumList("frequent");
- }
+ } else if (view == albumsStarredButton) {
+ showAlbumList("starred");
+ }
}
});
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java b/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java
index 9c49d550..f574572d 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java
@@ -308,6 +308,11 @@ public class OfflineMusicService extends RESTMusicService {
public JukeboxStatus setJukeboxGain(float gain, Context context, ProgressListener progressListener) throws Exception {
throw new OfflineException("Jukebox not available in offline mode");
}
+
+ @Override
+ public void setStarred(String id, boolean starred, Context context, ProgressListener progressListener) throws Exception {
+ throw new OfflineException("Starring not available in offline mode");
+ }
@Override
public MusicDirectory getRandomSongs(int size, Context context, ProgressListener progressListener) throws Exception {