Moved crash.log file

This commit is contained in:
M66B 2022-04-30 22:35:45 +02:00
parent 531eddf84b
commit 044723170e
2 changed files with 2 additions and 2 deletions

View File

@ -1420,7 +1420,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
new SimpleTask<Long>() {
@Override
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()) {
StringBuilder sb = new StringBuilder();
try {

View File

@ -1628,7 +1628,7 @@ public class Log {
}
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);
try (FileWriter out = new FileWriter(file, true)) {