aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-05-11 15:30:55 -0700
committerScott Jackson <daneren2005@gmail.com>2013-05-11 15:30:55 -0700
commitb0bbed9aa7d8d982c5f31a244208472da5468392 (patch)
tree65ad651b41b9b0cebd1442a788fdf682e306e20a /subsonic-android/src/github/daneren2005
parente6c6e1749deaa800b8da021b2e29fbd295a656cc (diff)
downloaddsub-b0bbed9aa7d8d982c5f31a244208472da5468392.tar.gz
dsub-b0bbed9aa7d8d982c5f31a244208472da5468392.tar.bz2
dsub-b0bbed9aa7d8d982c5f31a244208472da5468392.zip
If doing an album list, insert parent into backstack
Diffstat (limited to 'subsonic-android/src/github/daneren2005')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java13
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());