Bugfix: TrackImporter needs to lookup activityTypeLocalized if no activityType is present.

Part of #1608.
This commit is contained in:
Dennis Guse
2023-10-01 20:07:28 +02:00
parent 1e9a0abb49
commit 2e76458b62
@@ -109,7 +109,7 @@ public class TrackImporter {
ActivityType activityType;
if (activityTypeId == null) {
activityType = ActivityType.findByLocalizedString(context, activityTypeId);
activityType = ActivityType.findByLocalizedString(context, activityTypeLocalized);
} else {
activityType = ActivityType.findBy(activityTypeId);
}