add extra line to split up crash log device info

This commit is contained in:
Jays2Kings 2022-05-02 20:01:07 -04:00
parent fb3dffadf0
commit 3b5e12b248

View file

@ -23,7 +23,7 @@ class CrashLogUtil(private val context: Context) {
fun dumpLogs() { fun dumpLogs() {
try { try {
val file = context.createFileInCacheDir("tachiyomi_crash_logs.txt") val file = context.createFileInCacheDir("tachiyomi_crash_logs.txt")
file.appendText(getDebugInfo() + "\n") file.appendText(getDebugInfo() + "\n\n")
Runtime.getRuntime().exec("logcat *:E -d -f ${file.absolutePath}") Runtime.getRuntime().exec("logcat *:E -d -f ${file.absolutePath}")
showNotification(file.getUriCompat(context)) showNotification(file.getUriCompat(context))