diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-05-11 15:30:55 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-05-11 15:30:55 -0700 |
commit | b0bbed9aa7d8d982c5f31a244208472da5468392 (patch) | |
tree | 65ad651b41b9b0cebd1442a788fdf682e306e20a /subsonic-android | |
parent | e6c6e1749deaa800b8da021b2e29fbd295a656cc (diff) | |
download | dsub-b0bbed9aa7d8d982c5f31a244208472da5468392.tar.gz dsub-b0bbed9aa7d8d982c5f31a244208472da5468392.tar.bz2 dsub-b0bbed9aa7d8d982c5f31a244208472da5468392.zip |
If doing an album list, insert parent into backstack
Diffstat (limited to 'subsonic-android')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java index 1d7c0073..5ebbd7e9 100644 --- a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java +++ b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java @@ -114,6 +114,9 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter } else {
invalidated = true;
}
+ if(name != null) {
+ setTitle(name);
+ }
return rootView;
}
@@ -224,6 +227,16 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter if (position >= 0) {
MusicDirectory.Entry entry = (MusicDirectory.Entry) parent.getItemAtPosition(position);
if (entry.isDirectory()) {
+ if(albumListType != null) {
+ SubsonicFragment parentFragment = new SelectDirectoryFragment();
+ Bundle args = new Bundle();
+ args.putString(Constants.INTENT_EXTRA_NAME_ID, entry.getParent());
+ args.putString(Constants.INTENT_EXTRA_NAME_NAME, entry.getArtist());
+ parentFragment.setArguments(args);
+
+ replaceFragment(parentFragment, R.id.select_album_layout);
+ }
+
SubsonicFragment fragment = new SelectDirectoryFragment();
Bundle args = new Bundle();
args.putString(Constants.INTENT_EXTRA_NAME_ID, entry.getId());
|