refactor listener

This commit is contained in:
veliymolfar 2020-05-21 17:32:32 +03:00
parent a2a4eb2bcc
commit d1b7361d76

View file

@ -254,7 +254,7 @@ public class QuickSearchSubCategoriesFragment extends BaseOsmAndDialogFragment {
list.add(poiType.getKeyName()); list.add(poiType.getKeyName());
} }
Fragment fragment = getTargetFragment(); Fragment fragment = getTargetFragment();
if (fragment instanceof QuickSearchCustomPoiFragment) { if (fragment instanceof OnFiltersSelectedListener) {
((QuickSearchCustomPoiFragment) fragment).onFiltersSelected(poiCategory, list); ((QuickSearchCustomPoiFragment) fragment).onFiltersSelected(poiCategory, list);
} }
dismiss(); dismiss();