aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-04-19 13:42:57 -0700
committerScott Jackson <daneren2005@gmail.com>2014-04-19 13:42:57 -0700
commitc1fd0b3fb0103d687f5f3a1f5fb26038b3b12c6b (patch)
tree1095af9eba10ce658a3cb2835d629eeaff7cce96 /src/github/daneren2005
parent2afc4b04e4774f5a7b8ce4cf5b907c0d2e8fbe98 (diff)
downloaddsub-c1fd0b3fb0103d687f5f3a1f5fb26038b3b12c6b.tar.gz
dsub-c1fd0b3fb0103d687f5f3a1f5fb26038b3b12c6b.tar.bz2
dsub-c1fd0b3fb0103d687f5f3a1f5fb26038b3b12c6b.zip
Fix color bar being under server message
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/fragments/ChatFragment.java1
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java2
-rw-r--r--src/github/daneren2005/dsub/fragments/SelectListFragment.java1
-rw-r--r--src/github/daneren2005/dsub/fragments/SubsonicFragment.java1
-rw-r--r--src/github/daneren2005/dsub/service/RESTMusicService.java1
5 files changed, 2 insertions, 4 deletions
diff --git a/src/github/daneren2005/dsub/fragments/ChatFragment.java b/src/github/daneren2005/dsub/fragments/ChatFragment.java
index a44221ee..1742a489 100644
--- a/src/github/daneren2005/dsub/fragments/ChatFragment.java
+++ b/src/github/daneren2005/dsub/fragments/ChatFragment.java
@@ -217,7 +217,6 @@ public class ChatFragment extends SubsonicFragment {
ChatAdapter chatAdapter = new ChatAdapter(context, messageList);
chatListView.setAdapter(chatAdapter);
}
- refreshLayout.setRefreshing(false);
}
};
diff --git a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
index dc9c0e85..1ed4f185 100644
--- a/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectDirectoryFragment.java
@@ -606,8 +606,6 @@ public class SelectDirectoryFragment extends SubsonicFragment implements Adapter
if (playAll && !restoredInstance) {
playAll(args.getBoolean(Constants.INTENT_EXTRA_NAME_SHUFFLE, false), false);
}
-
- refreshLayout.setRefreshing(false);
}
private void playNow(final boolean shuffle, final boolean append) {
diff --git a/src/github/daneren2005/dsub/fragments/SelectListFragment.java b/src/github/daneren2005/dsub/fragments/SelectListFragment.java
index a568d65b..9657c66c 100644
--- a/src/github/daneren2005/dsub/fragments/SelectListFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SelectListFragment.java
@@ -138,7 +138,6 @@ public abstract class SelectListFragment<T> extends SubsonicFragment implements
listView.setAdapter(adapter = getAdapter(result));
listView.setVisibility(View.VISIBLE);
}
- refreshLayout.setRefreshing(false);
}
};
task.execute();
diff --git a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
index 015aa1de..45ab87e5 100644
--- a/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SubsonicFragment.java
@@ -407,6 +407,7 @@ public class SubsonicFragment extends Fragment implements SwipeRefreshLayout.OnR
@Override
public void onRefresh() {
+ refreshLayout.setRefreshing(false);
refresh();
}
diff --git a/src/github/daneren2005/dsub/service/RESTMusicService.java b/src/github/daneren2005/dsub/service/RESTMusicService.java
index 1f128ee8..404a6e23 100644
--- a/src/github/daneren2005/dsub/service/RESTMusicService.java
+++ b/src/github/daneren2005/dsub/service/RESTMusicService.java
@@ -1300,6 +1300,7 @@ public class RESTMusicService implements MusicService {
if (progressListener != null) {
progressListener.updateProgress(R.string.service_connecting);
}
+ Util.sleepQuietly(2000L);
String url = getRestUrl(context, method);
return getReaderForURL(context, url, requestParams, parameterNames, parameterValues, progressListener);