mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +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);
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue