aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-06-20 21:48:28 -0700
committerScott Jackson <daneren2005@gmail.com>2014-06-20 21:48:28 -0700
commit6d38bace78ebb7789b5d57e4146099577e73beca (patch)
tree267cc7aa5248cfc8a87c2cc252a5608cafceb728
parentc6fd2099bd2a62557a5f155712bd28748cb85278 (diff)
downloaddsub-6d38bace78ebb7789b5d57e4146099577e73beca.tar.gz
dsub-6d38bace78ebb7789b5d57e4146099577e73beca.tar.bz2
dsub-6d38bace78ebb7789b5d57e4146099577e73beca.zip
Empty search results should show "No data"
-rw-r--r--src/github/daneren2005/dsub/fragments/SearchFragment.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/fragments/SearchFragment.java b/src/github/daneren2005/dsub/fragments/SearchFragment.java
index 2b5660d2..f73989fb 100644
--- a/src/github/daneren2005/dsub/fragments/SearchFragment.java
+++ b/src/github/daneren2005/dsub/fragments/SearchFragment.java
@@ -254,6 +254,9 @@ public class SearchFragment extends SubsonicFragment {
}
boolean empty = searchResult.getArtists().isEmpty() && searchResult.getAlbums().isEmpty() && searchResult.getSongs().isEmpty();
+ if(empty) {
+ setEmpty(true);
+ }
}
list.setAdapter(mergeAdapter);