diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-06-20 21:48:28 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-06-20 21:48:28 -0700 |
commit | 6d38bace78ebb7789b5d57e4146099577e73beca (patch) | |
tree | 267cc7aa5248cfc8a87c2cc252a5608cafceb728 | |
parent | c6fd2099bd2a62557a5f155712bd28748cb85278 (diff) | |
download | dsub-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.java | 3 |
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);
|