aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-10-29 15:12:15 -0700
committerdaneren2005 <daneren2005@gmail.com>2013-10-29 15:12:15 -0700
commitc2636ec6774f8ccc3125b558929ec9a873fe99cf (patch)
tree72a0f6948ad8e1a50a8161ed84e5454beed45cf5 /src/github/daneren2005
parent0186c4c47586dd423df22266899b3145c203aba8 (diff)
downloaddsub-c2636ec6774f8ccc3125b558929ec9a873fe99cf.tar.gz
dsub-c2636ec6774f8ccc3125b558929ec9a873fe99cf.tar.bz2
dsub-c2636ec6774f8ccc3125b558929ec9a873fe99cf.zip
Always force load artist listing if going from Recent Albums
If something is in recent albums, chances are the list of albums has changed for the artist. When going through this mechanism, make sure to hard refresh the list.
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
index d73316ae..59bfe000 100644
--- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
@@ -64,6 +64,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter
String albumListType;
String albumListExtra;
int albumListSize;
+ boolean refreshListing = false;
public SelectDirectoryFragment() {
@@ -130,6 +131,7 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter
albumListType = args.getString(Constants.INTENT_EXTRA_NAME_ALBUM_LIST_TYPE);
albumListExtra = args.getString(Constants.INTENT_EXTRA_NAME_ALBUM_LIST_EXTRA);
albumListSize = args.getInt(Constants.INTENT_EXTRA_NAME_ALBUM_LIST_SIZE, 0);
+ refreshListing = args.getBoolean(Constants.INTENT_EXTRA_REFRESH_LISTINGS);
if(entries == null) {
entries = (List<MusicDirectory.Entry>) args.getSerializable(Constants.FRAGMENT_LIST);
}
@@ -289,6 +291,9 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter
Bundle args = new Bundle();
args.putString(Constants.INTENT_EXTRA_NAME_ID, entry.getParent());
args.putString(Constants.INTENT_EXTRA_NAME_NAME, entry.getArtist());
+ if("recent".equals(albumListType)) {
+ args.putBoolean(Constants.INTENT_EXTRA_REFRESH_LISTINGS, true);
+ }
parentFragment.setArguments(args);
replaceFragment(parentFragment, fragId);
@@ -336,6 +341,10 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter
}
private void load(boolean refresh) {
+ if(refreshListing) {
+ refresh = true;
+ }
+
entryList.setVisibility(View.INVISIBLE);
emptyView.setVisibility(View.INVISIBLE);
if (playlistId != null) {