|
@@ -8,6 +8,7 @@ import android.os.IBinder
|
|
|
import android.widget.Toast
|
|
import android.widget.Toast
|
|
|
import androidx.activity.result.contract.ActivityResultContracts
|
|
import androidx.activity.result.contract.ActivityResultContracts
|
|
|
import com.github.kr328.clash.common.compat.startForegroundServiceCompat
|
|
import com.github.kr328.clash.common.compat.startForegroundServiceCompat
|
|
|
|
|
+import com.github.kr328.clash.common.log.Log
|
|
|
import com.github.kr328.clash.common.util.fileName
|
|
import com.github.kr328.clash.common.util.fileName
|
|
|
import com.github.kr328.clash.common.util.intent
|
|
import com.github.kr328.clash.common.util.intent
|
|
|
import com.github.kr328.clash.common.util.ticker
|
|
import com.github.kr328.clash.common.util.ticker
|
|
@@ -47,6 +48,7 @@ class LogcatActivity : BaseActivity<LogcatDesign>() {
|
|
|
val messages = try {
|
|
val messages = try {
|
|
|
LogcatReader(this, file).readAll()
|
|
LogcatReader(this, file).readAll()
|
|
|
} catch (e: Exception) {
|
|
} catch (e: Exception) {
|
|
|
|
|
+ Log.e("Fail to read log file ${file.fileName}: ${e.message}")
|
|
|
return showInvalid()
|
|
return showInvalid()
|
|
|
}
|
|
}
|
|
|
|
|
|