Moved crash.log file

pull/207/head
M66B 3 years ago
parent 531eddf84b
commit 044723170e

@ -1420,7 +1420,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
new SimpleTask<Long>() { new SimpleTask<Long>() {
@Override @Override
protected Long onExecute(Context context, Bundle args) throws Throwable { protected Long onExecute(Context context, Bundle args) throws Throwable {
File file = new File(context.getCacheDir(), "crash.log"); File file = new File(context.getFilesDir(), "crash.log");
if (file.exists()) { if (file.exists()) {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
try { try {

@ -1628,7 +1628,7 @@ public class Log {
} }
static void writeCrashLog(Context context, Throwable ex) { static void writeCrashLog(Context context, Throwable ex) {
File file = new File(context.getCacheDir(), "crash.log"); File file = new File(context.getFilesDir(), "crash.log");
Log.w("Writing exception to " + file); Log.w("Writing exception to " + file);
try (FileWriter out = new FileWriter(file, true)) { try (FileWriter out = new FileWriter(file, true)) {

Loading…
Cancel
Save