diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-07-18 18:13:59 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-07-18 18:13:59 -0700 |
commit | c3afd24b4ee51c9bd9e2789dfe26c4d758d57809 (patch) | |
tree | 6aa675e37287d9de841c8a80e1180f171d023dee /src | |
parent | 8738032259a3ca7bde8eb97bd1f6840fd03d5b31 (diff) | |
download | dsub-c3afd24b4ee51c9bd9e2789dfe26c4d758d57809.tar.gz dsub-c3afd24b4ee51c9bd9e2789dfe26c4d758d57809.tar.bz2 dsub-c3afd24b4ee51c9bd9e2789dfe26c4d758d57809.zip |
Fix crash from race condition where objects is set but buttons are ready to be used
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/SelectArtistFragment.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java b/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java index e5b3bfba..a06adca2 100644 --- a/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java +++ b/src/github/daneren2005/dsub/fragments/SelectArtistFragment.java @@ -69,7 +69,7 @@ public class SelectArtistFragment extends SelectListFragment<Artist> { listView.setFastScrollAlwaysVisible(true);
}
- if(objects != null) {
+ if(objects != null && currentTask == null) {
if (Util.isOffline(context) || Util.isTagBrowsing(context)) {
folderButton.setVisibility(View.GONE);
}
@@ -154,7 +154,7 @@ public class SelectArtistFragment extends SelectListFragment<Artist> { }
@Override
- protected void onFinishRefresh() {
+ public void onFinishRefresh() {
setMusicFolders();
}
|