poi types opens categories tab

This commit is contained in:
veliymolfar 2020-03-02 18:50:51 +02:00
parent 50a4cb244d
commit baa4c87c8d

View file

@ -136,6 +136,7 @@ public class ImportCompleteFragment extends BaseOsmAndFragment {
private void navigateTo(AdditionalDataWrapper.Type type) { private void navigateTo(AdditionalDataWrapper.Type type) {
FragmentManager fm = getFragmentManager(); FragmentManager fm = getFragmentManager();
Activity activity = requireActivity();
if (fm == null) { if (fm == null) {
return; return;
} }
@ -155,10 +156,18 @@ public class ImportCompleteFragment extends BaseOsmAndFragment {
.addToBackStack(QuickActionListFragment.TAG).commit(); .addToBackStack(QuickActionListFragment.TAG).commit();
break; break;
case POI_TYPES: case POI_TYPES:
new QuickSearchDialogFragment().show(fm, QuickSearchDialogFragment.TAG); if (activity instanceof MapActivity) {
QuickSearchDialogFragment.showInstance(
(MapActivity) activity,
"",
null,
QuickSearchDialogFragment.QuickSearchType.REGULAR,
QuickSearchDialogFragment.QuickSearchTab.CATEGORIES,
null
);
}
break; break;
case MAP_SOURCES: case MAP_SOURCES:
Activity activity = requireActivity();
if (activity instanceof MapActivity) { if (activity instanceof MapActivity) {
((MapActivity) activity).getDashboard() ((MapActivity) activity).getDashboard()
.setDashboardVisibility( .setDashboardVisibility(