From 8a5d658b2a63ad596309e1a57ff4846c17e9875a Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Wed, 4 Dec 2019 20:46:22 +0100 Subject: [PATCH] reduce cursor size back to 4m; now that the cause is fixed --- src/main/java/eu/siacs/conversations/utils/CursorUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/utils/CursorUtils.java b/src/main/java/eu/siacs/conversations/utils/CursorUtils.java index 28f17b585..91befa229 100644 --- a/src/main/java/eu/siacs/conversations/utils/CursorUtils.java +++ b/src/main/java/eu/siacs/conversations/utils/CursorUtils.java @@ -11,7 +11,7 @@ public class CursorUtils { if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.P) { if (cursor instanceof AbstractWindowedCursor) { final AbstractWindowedCursor windowedCursor = (AbstractWindowedCursor) cursor; - windowedCursor.setWindow(new CursorWindow("4M", 8 * 1024 * 1024)); + windowedCursor.setWindow(new CursorWindow("4M", 4 * 1024 * 1024)); } if (cursor instanceof SQLiteCursor) { ((SQLiteCursor) cursor).setFillWindowForwardOnly(true);