Export: filename template now distinguishes between {date} and {time}.

This commit is contained in:
Dennis Guse
2022-05-18 23:21:38 +02:00
parent 17ad13d559
commit 24eb768707
3 changed files with 11 additions and 8 deletions
@@ -28,10 +28,11 @@ public class TrackFilenameGeneratorTest {
@Parameterized.Parameters
public static Collection<String[]> data() {
return Arrays.asList(new String[][]{
{"{uuid}_{name}", "0000fee0_Best Track.gpx" },
{"{name}_{uuid}", "Best Track_0000fee0.gpx" },
{"{time}_{name}", "2020-02-02T02_02_02Z_Best Track.gpx" },
{ApplicationProvider.getApplicationContext().getString(R.string.export_filename_format_default), "2020-02-02T02_02_02Z_Best Track.gpx" },
{"{uuid}_{name}", "0000fee0_Best Track.gpx"},
{"{name}_{uuid}", "Best Track_0000fee0.gpx"},
{"{time}_{name}", "02_02_02_Best Track.gpx"},
{"{date}_{name}", "2020-02-02_Best Track.gpx"},
{ApplicationProvider.getApplicationContext().getString(R.string.export_filename_format_default), "2020-02-02_02_02_02_Best Track.gpx"},
});
}