aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2014-04-29 14:01:40 -0700
committerdaneren2005 <daneren2005@gmail.com>2014-04-29 14:01:40 -0700
commit8bf03270f032b966589c730acc2ff6b0db7a94e8 (patch)
tree066a203a81b1bd560bf1287d4553475ead47d8de
parent8c773a68b824d204cd0af65e30c4b2633d962318 (diff)
downloaddsub-8bf03270f032b966589c730acc2ff6b0db7a94e8.tar.gz
dsub-8bf03270f032b966589c730acc2ff6b0db7a94e8.tar.bz2
dsub-8bf03270f032b966589c730acc2ff6b0db7a94e8.zip
Call loadSettings if Open To Library is true
-rw-r--r--src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
index 0bf770f3..ebedf9b1 100644
--- a/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
+++ b/src/github/daneren2005/dsub/activity/SubsonicFragmentActivity.java
@@ -104,13 +104,15 @@ public class SubsonicFragmentActivity extends SubsonicActivity {
if (findViewById(R.id.fragment_container) != null && savedInstanceState == null) {
String fragmentType = getIntent().getStringExtra(Constants.INTENT_EXTRA_FRAGMENT_TYPE);
+ boolean firstRun = false;
if(fragmentType == null && Util.isOpenToLibrary(this)) {
fragmentType = "Artist";
getIntent().putExtra(Constants.INTENT_EXTRA_FRAGMENT_TYPE, fragmentType);
+ firstRun = true;
}
currentFragment = getNewFragment(fragmentType);
- if("".equals(fragmentType) || fragmentType == null) {
+ if("".equals(fragmentType) || fragmentType == null || firstRun) {
// Initial startup stuff
loadSettings();
}