diff --git a/src/main/java/de/dennisguse/opentracks/settings/PreferencesUtils.java b/src/main/java/de/dennisguse/opentracks/settings/PreferencesUtils.java index 93aedb890..5f19642b8 100644 --- a/src/main/java/de/dennisguse/opentracks/settings/PreferencesUtils.java +++ b/src/main/java/de/dennisguse/opentracks/settings/PreferencesUtils.java @@ -657,12 +657,12 @@ public static boolean shouldInstantExportAfterWorkout() { } public static TrackFilenameGenerator getTrackFileformatGenerator() { - String DEFAULT = resources.getString(R.string.export_filename_format_default); - TrackFilenameGenerator generator = new TrackFilenameGenerator(getString(R.string.export_filename_format_key, DEFAULT)); + String defaultDate = resources.getString(R.string.export_filename_format_default); + TrackFilenameGenerator generator = new TrackFilenameGenerator(getString(R.string.export_filename_format_key, defaultDate)); if (generator.isValid()) { return generator; } else { - return new TrackFilenameGenerator(DEFAULT); + return new TrackFilenameGenerator(defaultDate); } }