Merge pull request #8447 from osmandapp/FixImportRouting

Fix "Double navigation profiles list after import" bug
This commit is contained in:
max-klaus 2020-02-12 11:21:26 +03:00 committed by GitHub
commit b99cc70fa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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