Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Prefix export file name with date
Browse files Browse the repository at this point in the history
Fixes #1625
  • Loading branch information
M66B committed Apr 13, 2014
1 parent 9b1abed commit b4e63cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Changelog
**Next release**

* Fixed applying template in relation to default restrictions ([issue](/../../issues/1566))
* Prefix export file name with date ([issue](/../../issues/1625))

[Open issues](https://github.com/M66B/XPrivacy/issues?state=open)

Expand Down
4 changes: 2 additions & 2 deletions src/biz/bokhorst/xprivacy/ActivityShare.java
Original file line number Diff line number Diff line change
Expand Up @@ -1806,8 +1806,8 @@ public static String getFileName(Context context, boolean multiple, String packa
String fileName;
if (multiple) {
SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd_HHmmss", Locale.ROOT);
fileName = String.format("XPrivacy_%s_%s_%s%s.xml", Util.getSelfVersionName(context),
format.format(new Date()), Build.DEVICE, (packageName == null ? "" : "_" + packageName));
fileName = String.format("%s_XPrivacy_%s_%s%s.xml", format.format(new Date()),
Util.getSelfVersionName(context), Build.DEVICE, (packageName == null ? "" : "_" + packageName));
} else
fileName = "XPrivacy.xml";
return new File(folder + File.separator + fileName).getAbsolutePath();
Expand Down

0 comments on commit b4e63cc

Please sign in to comment.