1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2025-01-01 12:54:07 +00:00

Fixed export file name

Refs #243
This commit is contained in:
M66B 2016-02-02 07:46:50 +01:00
parent f224b54139
commit d6460d368b
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}

View file

@ -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);