resetSearchTypes

This commit is contained in:
veliymolfar 2020-06-04 15:00:35 +03:00
parent a299b01bac
commit 1d869b309c

View file

@ -273,7 +273,7 @@ public class QuickSearchCustomPoiFragment extends DialogFragment implements OnFi
quickSearchDialogFragment.reloadCategories();
}
}
searchUICore.getSearchSettings().resetSearchTypes();
resetSearchTypes();
super.onDismiss(dialog);
}
@ -301,6 +301,10 @@ public class QuickSearchCustomPoiFragment extends DialogFragment implements OnFi
});
}
private void resetSearchTypes() {
searchUICore.updateSettings(searchUICore.getSearchSettings().resetSearchTypes());
}
private void updateCloseSearchIcon(boolean searching) {
AndroidUiHelper.updateVisibility(searchProgressBar, searching);
AndroidUiHelper.updateVisibility(searchCloseIcon, !searching);
@ -331,7 +335,7 @@ public class QuickSearchCustomPoiFragment extends DialogFragment implements OnFi
private void cancelSearchSubCategories() {
searchCancelled = true;
searchUICore.getSearchSettings().resetSearchTypes();
resetSearchTypes();
updateCloseSearchIcon(false);
}
@ -359,7 +363,7 @@ public class QuickSearchCustomPoiFragment extends DialogFragment implements OnFi
app.runInUIThread(new Runnable() {
@Override
public void run() {
searchUICore.getSearchSettings().resetSearchTypes();
resetSearchTypes();
if (!searchCancelled) {
subCategoriesAdapter.setSelectedItems(selectedSubCategories);
showSearchResults(results);