diff options
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/fragments/SelectPlaylistFragment.java | 12 |
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);
|