diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a90e562c..3e3ac97a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/biz/bokhorst/xprivacy/ActivityShare.java b/src/biz/bokhorst/xprivacy/ActivityShare.java index 19915a979..5b9686662 100644 --- a/src/biz/bokhorst/xprivacy/ActivityShare.java +++ b/src/biz/bokhorst/xprivacy/ActivityShare.java @@ -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();