From e4f753ae82abf06e38457f37fce229b26bd8f6f2 Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Tue, 23 Feb 2016 23:36:02 +0100 Subject: [PATCH] fixed emty search query on suggestions error --- .../main/java/org/schabi/newpipe/VideoItemListActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/VideoItemListActivity.java b/app/src/main/java/org/schabi/newpipe/VideoItemListActivity.java index 5f04d5174..b034f61ba 100644 --- a/app/src/main/java/org/schabi/newpipe/VideoItemListActivity.java +++ b/app/src/main/java/org/schabi/newpipe/VideoItemListActivity.java @@ -108,7 +108,9 @@ public class VideoItemListActivity extends AppCompatActivity @Override public boolean onQueryTextChange(String newText) { - searchSuggestions(newText); + if(!newText.isEmpty()) { + searchSuggestions(newText); + } return true; }