forked from upstream-mirrors/OpenTracks
Bugfix: TrackImporter needs to lookup activityTypeLocalized if no activityType is present.
Part of #1608.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user