minor: disable stats job when app is closed

Adds a slight battery performance improvement

#437
This commit is contained in:
Zane Schepke
2024-11-23 15:00:06 -05:00
parent f79f922838
commit 9a2d77c8bf
4 changed files with 8 additions and 3 deletions
@@ -182,8 +182,7 @@ object LogcatCollector {
clear()
logcatProc = Runtime.getRuntime().exec(command)
reader = BufferedReader(InputStreamReader(logcatProc!!.inputStream), 1024)
var line: String? = null
var line: String?
while (!stopped) {
if (paused) continue
line = reader?.readLine()