From d6460d368b6b08f149f0fe9d198b1a1e61e9c864 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 2 Feb 2016 07:46:50 +0100 Subject: [PATCH] Fixed export file name Refs #243 --- app/src/main/java/eu/faircode/netguard/ActivityMain.java | 2 +- app/src/main/java/eu/faircode/netguard/ActivitySettings.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/netguard/ActivityMain.java b/app/src/main/java/eu/faircode/netguard/ActivityMain.java index 2a5bce65..f6fbbf97 100644 --- a/app/src/main/java/eu/faircode/netguard/ActivityMain.java +++ b/app/src/main/java/eu/faircode/netguard/ActivityMain.java @@ -343,7 +343,7 @@ public class ActivityMain extends AppCompatActivity implements SharedPreferences Uri target = data.getData(); if (data.hasExtra("org.openintents.extra.DIR_PATH")) target = Uri.parse(target + "/logcat.txt"); - Log.i(TAG, "Export PCAP URI=" + target); + Log.i(TAG, "Export URI=" + target); Util.sendLogcat(target, this); } diff --git a/app/src/main/java/eu/faircode/netguard/ActivitySettings.java b/app/src/main/java/eu/faircode/netguard/ActivitySettings.java index c368e873..fc959f79 100644 --- a/app/src/main/java/eu/faircode/netguard/ActivitySettings.java +++ b/app/src/main/java/eu/faircode/netguard/ActivitySettings.java @@ -659,7 +659,7 @@ public class ActivitySettings extends AppCompatActivity implements SharedPrefere try { Uri target = data.getData(); if (data.hasExtra("org.openintents.extra.DIR_PATH")) - target = Uri.parse(target + "/netguard.xml"); + target = Uri.parse(target + "/netguard_" + new SimpleDateFormat("yyyyMMdd").format(new Date().getTime()) + ".xml"); Log.i(TAG, "Writing URI=" + target); out = getContentResolver().openOutputStream(target); xmlExport(out);