Fix "Double navigation profiles list after import" bug

This commit is contained in:
Nazar 2020-02-12 09:55:00 +02:00
parent 2a9428013a
commit 9ff19635be

View file

@ -235,6 +235,7 @@ public class SelectProfileBottomSheetDialogFragment extends MenuBottomSheetDialo
} }
private void refreshProfiles(OsmandApplication app) { private void refreshProfiles(OsmandApplication app) {
profiles.clear();
if (type.equals(TYPE_NAV_PROFILE)) { if (type.equals(TYPE_NAV_PROFILE)) {
profiles.addAll(NavigationFragment.getSortedRoutingProfiles(app)); profiles.addAll(NavigationFragment.getSortedRoutingProfiles(app));
} else if (type.equals(TYPE_BASE_APP_PROFILE)) { } else if (type.equals(TYPE_BASE_APP_PROFILE)) {