Update QuickSearchPoiFilterFragment.java

This commit is contained in:
vshcherb 2020-04-16 18:28:38 +02:00 committed by GitHub
parent 28c6491911
commit 3e7ca15a26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -380,8 +380,9 @@ public class QuickSearchPoiFilterFragment extends DialogFragment {
nFilter.setSavedFilterByName(filter.getFilterByName());
}
if (app.getPoiFilters().createPoiFilter(nFilter, false)) {
Toast.makeText(getContext(), MessageFormat.format(getContext().getText(R.string.edit_filter_create_message).toString(),
editText.getText().toString()), Toast.LENGTH_SHORT).show();
Toast.makeText(getContext(),
getContext().getText(R.string.edit_filter_create_message, editText.getText().toString()),
Toast.LENGTH_SHORT).show();
app.getSearchUICore().refreshCustomPoiFilters();
((QuickSearchDialogFragment) getParentFragment()).replaceQueryWithUiFilter(nFilter, "");
((QuickSearchDialogFragment) getParentFragment()).reloadCategories();