aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-04-14 20:01:46 -0700
committerScott Jackson <daneren2005@gmail.com>2013-04-14 20:01:46 -0700
commit634536648d7847fe648c18d7572d7717d6348e43 (patch)
treeb59bc83fb8bf1bd42b5faf3ba1d9c4ecb9223ffa
parent38e25911433ca87356b6f4fd3671c39785fb7798 (diff)
downloaddsub-634536648d7847fe648c18d7572d7717d6348e43.tar.gz
dsub-634536648d7847fe648c18d7572d7717d6348e43.tar.bz2
dsub-634536648d7847fe648c18d7572d7717d6348e43.zip
Fix playNow from playlists
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
index 05f64f67..09b5e437 100644
--- a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
+++ b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java
@@ -107,12 +107,10 @@ public class SelectPlaylistFragment extends LibraryFunctionsFragment implements
args = new Bundle();
args.putString(Constants.INTENT_EXTRA_NAME_PLAYLIST_ID, playlist.getId());
args.putString(Constants.INTENT_EXTRA_NAME_PLAYLIST_NAME, playlist.getName());
+ args.putBoolean(Constants.INTENT_EXTRA_NAME_AUTOPLAY, true);
fragment.setArguments(args);
- trans = getFragmentManager().beginTransaction();
- trans.replace(R.id.select_playlist_layout, fragment);
- trans.addToBackStack(null);
- trans.commit();
+ replaceFragment(fragment, R.id.select_playlist_layout);
break;
case R.id.playlist_menu_play_shuffled:
fragment = new SelectDirectoryFragment();
@@ -120,12 +118,10 @@ public class SelectPlaylistFragment extends LibraryFunctionsFragment implements
args.putString(Constants.INTENT_EXTRA_NAME_PLAYLIST_ID, playlist.getId());
args.putString(Constants.INTENT_EXTRA_NAME_PLAYLIST_NAME, playlist.getName());
args.putBoolean(Constants.INTENT_EXTRA_NAME_SHUFFLE, true);
+ args.putBoolean(Constants.INTENT_EXTRA_NAME_AUTOPLAY, true);
fragment.setArguments(args);
- trans = getFragmentManager().beginTransaction();
- trans.replace(R.id.select_playlist_layout, fragment);
- trans.addToBackStack(null);
- trans.commit();
+ replaceFragment(fragment, R.id.select_playlist_layout);
break;
case R.id.playlist_menu_delete:
deletePlaylist(playlist);