aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-01-30 14:49:19 -0800
committerScott Jackson <daneren2005@gmail.com>2014-01-30 14:49:19 -0800
commit9f75a03908bd87705a5ff314349c45eb08354281 (patch)
treefa6c0a936b786bd3636817e5a83ddeb081f77481 /src
parent9f032a3e2d2997a37d8dbf8bc0ca058aba1fd79c (diff)
downloaddsub-9f75a03908bd87705a5ff314349c45eb08354281.tar.gz
dsub-9f75a03908bd87705a5ff314349c45eb08354281.tar.bz2
dsub-9f75a03908bd87705a5ff314349c45eb08354281.zip
Fix rotating after playAll on dir causing repeated action
Diffstat (limited to 'src')
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
index 9e7d93fa..722f94c9 100644
--- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
@@ -68,7 +68,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter
int albumListSize;
boolean refreshListing = false;
boolean showAll = false;
-
+ boolean restoredInstance = false;
public SelectDirectoryFragment() {
super();
@@ -84,6 +84,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter
rootId = tmp;
}
entries = (List<MusicDirectory.Entry>) bundle.getSerializable(Constants.FRAGMENT_LIST);
+ restoredInstance = true;
}
}
@@ -585,7 +586,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter
Bundle args = getArguments();
boolean playAll = args.getBoolean(Constants.INTENT_EXTRA_NAME_AUTOPLAY, false);
- if (playAll) {
+ if (playAll && !restoredInstance) {
playAll(args.getBoolean(Constants.INTENT_EXTRA_NAME_SHUFFLE, false), false);
}
}