mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-11 08:48:06 +01:00
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:
parent
cfd7842862
commit
2c26af0e68
1 changed files with 2 additions and 1 deletions
|
@ -72,7 +72,8 @@ public class ZipUtils {
|
||||||
{
|
{
|
||||||
DateFormat format = DateFormat.getDateInstance(DateFormat.SHORT);
|
DateFormat format = DateFormat.getDateInstance(DateFormat.SHORT);
|
||||||
String date = format.format( new Date() );
|
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;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue