From 720649957af5ba5ad25a3f18d7c1b068c02bb03e Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 19 May 2024 13:22:48 +0200 Subject: [PATCH] Debug: prevent cursor window full --- app/src/main/java/eu/faircode/email/FragmentLogs.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentLogs.java b/app/src/main/java/eu/faircode/email/FragmentLogs.java index 9deafd3569..6d6d41ca99 100644 --- a/app/src/main/java/eu/faircode/email/FragmentLogs.java +++ b/app/src/main/java/eu/faircode/email/FragmentLogs.java @@ -128,7 +128,7 @@ public class FragmentLogs extends FragmentBase { super.onActivityCreated(savedInstanceState); long from = new Date().getTime() - 24 * 3600 * 1000L; - int limit = (BuildConfig.DEBUG ? 10000 : 2000); + int limit = (BuildConfig.DEBUG ? 5000 : 2000); DB db = DB.getInstance(getContext()); db.log().liveLogs(from, limit, null).observe(getViewLifecycleOwner(), new Observer>() {