From 13a0d1de70b664bc1548845268f2689d912ae303 Mon Sep 17 00:00:00 2001 From: Stypox Date: Sun, 5 Jul 2020 00:44:40 +0200 Subject: [PATCH] Replace search query without searching on suggestion panel long click --- .../fragments/list/search/SearchFragment.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/fragments/list/search/SearchFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/list/search/SearchFragment.java index 6d2b9ca37..ade536c3f 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/list/search/SearchFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/list/search/SearchFragment.java @@ -704,10 +704,6 @@ public class SearchFragment extends BaseListFragment { + searchEditText.setText(searchSuggestion); + searchEditText.setSelection(searchSuggestion.length()); + showKeyboardSearch(); + return true; + }); + correctSuggestion.setVisibility(View.VISIBLE); - } else { - correctSuggestion.setVisibility(View.GONE); } }