This commit is contained in:
Grishka 2022-04-19 07:07:03 +03:00
parent f267f68245
commit 94b6189f36
1 changed files with 2 additions and 0 deletions

View File

@ -335,6 +335,8 @@ public class InstanceCatalogFragment extends BaseRecyclerFragment<CatalogInstanc
private boolean onSearchEnterPressed(TextView v, int actionId, KeyEvent event){ private boolean onSearchEnterPressed(TextView v, int actionId, KeyEvent event){
if(event!=null && event.getAction()!=KeyEvent.ACTION_DOWN) if(event!=null && event.getAction()!=KeyEvent.ACTION_DOWN)
return true; return true;
currentSearchQuery=searchEdit.getText().toString().toUpperCase();
updateFilteredList();
searchEdit.removeCallbacks(searchDebouncer); searchEdit.removeCallbacks(searchDebouncer);
Instance instance=instancesCache.get(currentSearchQuery); Instance instance=instancesCache.get(currentSearchQuery);
if(instance==null){ if(instance==null){