remove / from archive filenames

Older versions of Android use / in default date strings to produce
illegal file names. Swap '-' in instead.
This commit is contained in:
Eric House 2022-06-28 08:54:05 -07:00
parent cfd7842862
commit 2c26af0e68

View file

@ -72,7 +72,8 @@ public class ZipUtils {
{
DateFormat format = DateFormat.getDateInstance(DateFormat.SHORT);
String date = format.format( new Date() );
String name = LocUtils.getString( context, R.string.archive_filename_fmt, date );
String name = LocUtils.getString( context, R.string.archive_filename_fmt, date )
.replace('/', '-');
return name;
}