diff --git a/OsmAnd/src/net/osmand/plus/search/QuickSearchSubCategoriesFragment.java b/OsmAnd/src/net/osmand/plus/search/QuickSearchSubCategoriesFragment.java index 02baf8623a..d5882ecc84 100644 --- a/OsmAnd/src/net/osmand/plus/search/QuickSearchSubCategoriesFragment.java +++ b/OsmAnd/src/net/osmand/plus/search/QuickSearchSubCategoriesFragment.java @@ -254,7 +254,7 @@ public class QuickSearchSubCategoriesFragment extends BaseOsmAndDialogFragment { list.add(poiType.getKeyName()); } Fragment fragment = getTargetFragment(); - if (fragment instanceof QuickSearchCustomPoiFragment) { + if (fragment instanceof OnFiltersSelectedListener) { ((QuickSearchCustomPoiFragment) fragment).onFiltersSelected(poiCategory, list); } dismiss();