mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-08-29 05:37:49 +00:00
Show search filter in search bar hint
This commit is contained in:
parent
d2dc20c551
commit
769e98acd0
@ -945,6 +945,15 @@ public class SearchFragment extends BaseListFragment<SearchInfo, ListExtractor.I
|
|||||||
filterItemCheckedId = item.getItemId();
|
filterItemCheckedId = item.getItemId();
|
||||||
item.setChecked(true);
|
item.setChecked(true);
|
||||||
|
|
||||||
|
if ((theContentFilter.isEmpty() || "all".equals(theContentFilter.get(0)))
|
||||||
|
&& service != null) {
|
||||||
|
searchEditText.setHint(
|
||||||
|
getString(R.string.search_with_service_name,
|
||||||
|
service.getServiceInfo().getName()));
|
||||||
|
} else {
|
||||||
|
searchEditText.setHint(getString(R.string.search_with_service_name, item.getTitle()));
|
||||||
|
}
|
||||||
|
|
||||||
contentFilter = theContentFilter.toArray(new String[0]);
|
contentFilter = theContentFilter.toArray(new String[0]);
|
||||||
|
|
||||||
if (!TextUtils.isEmpty(searchString)) {
|
if (!TextUtils.isEmpty(searchString)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user