From 6d38bace78ebb7789b5d57e4146099577e73beca Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Fri, 20 Jun 2014 21:48:28 -0700 Subject: Empty search results should show "No data" --- src/github/daneren2005/dsub/fragments/SearchFragment.java | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3