From ac668a1233695860d42dcbebb10c54b896cfb113 Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 10 Sep 2021 17:21:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/constant/AppLog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/constant/AppLog.kt b/app/src/main/java/io/legado/app/constant/AppLog.kt index 5a7b24498..a9db5d848 100644 --- a/app/src/main/java/io/legado/app/constant/AppLog.kt +++ b/app/src/main/java/io/legado/app/constant/AppLog.kt @@ -7,7 +7,7 @@ object AppLog { @Synchronized fun addLog(message: String?, throwable: Throwable?) { message ?: return - if (logs.size > 1000) { + if (logs.size > 100) { logs.removeLastOrNull() } logs.add(0, Triple(System.currentTimeMillis(), message, throwable))