diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-08-07 14:06:28 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-08-07 14:06:28 -0700 |
commit | 8114969fe3f3e0be81ef4470f53e68fd3ee2a358 (patch) | |
tree | 267826151f53a44fd49ee38a9ffc8acbdeae6104 /src | |
parent | a31e11c8a08033f7a15947d21d494f32323f202a (diff) | |
download | dsub-8114969fe3f3e0be81ef4470f53e68fd3ee2a358.tar.gz dsub-8114969fe3f3e0be81ef4470f53e68fd3ee2a358.tar.bz2 dsub-8114969fe3f3e0be81ef4470f53e68fd3ee2a358.zip |
#383 Open up album lists if passed as intent extra
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java index feec5149..30cabd76 100644 --- a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java +++ b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java @@ -129,6 +129,20 @@ public class SubsonicFragmentActivity extends SubsonicActivity { SearchFragment fragment = new SearchFragment();
replaceFragment(fragment, fragment.getSupportTag());
}
+
+ // If a album type is set, switch to that album type view
+ String albumType = getIntent().getStringExtra(Constants.INTENT_EXTRA_NAME_ALBUM_LIST_TYPE);
+ if(albumType != null) {
+ SubsonicFragment fragment = new SelectDirectoryFragment();
+
+ Bundle args = new Bundle();
+ args.putString(Constants.INTENT_EXTRA_NAME_ALBUM_LIST_TYPE, albumType);
+ args.putInt(Constants.INTENT_EXTRA_NAME_ALBUM_LIST_SIZE, 20);
+ args.putInt(Constants.INTENT_EXTRA_NAME_ALBUM_LIST_OFFSET, 0);
+
+ fragment.setArguments(args);
+ replaceFragment(fragment, fragment.getSupportTag());
+ }
}
bottomBar = findViewById(R.id.bottom_bar);
|