poi types opens categories tab
This commit is contained in:
parent
50a4cb244d
commit
baa4c87c8d
1 changed files with 11 additions and 2 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue