forked from upstream-mirrors/OpenTracks
Export: filename template now distinguishes between {date} and {time}.
This commit is contained in:
+5
-4
@@ -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"},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user