resetSearchTypes
This commit is contained in:
parent
a299b01bac
commit
1d869b309c
1 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue