Small improvement

This commit is contained in:
M66B
2023-12-14 18:51:32 +01:00
parent d47e5ec10c
commit 8be1db079e
2 changed files with 8 additions and 4 deletions

View File

@@ -1502,7 +1502,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.getFilesDir(), "crash.log");
File file = new File(context.getFilesDir(), Log.CRASH_LOG_NAME);
if (file.exists()) {
StringBuilder sb = new StringBuilder();
try {
@@ -1535,7 +1535,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
ToastEx.makeText(ActivityView.this,
Log.formatThrowable(ex, false), Toast.LENGTH_LONG).show();
}
}.execute(this, new Bundle(), "crash:log");
}.execute(this, new Bundle(), Log.CRASH_LOG_NAME);
}
private void checkUpdate(boolean always) {