From 0c563134daf0c69f877960e8e9087b5193a9a183 Mon Sep 17 00:00:00 2001 From: eta Date: Sun, 4 Oct 2020 14:48:08 +0100 Subject: [PATCH] Enable the android:largeHeap flag - With large accounts (such as mine), Conversations starts hitting up against the default heap limit pretty quickly, at which point it grinds to a halt as GC pause times increase. - Furthermore, it's impossible to complete a backup with such an account, since Conversations will just run out of memory before the backup can complete. - Enabling the `android:largeHeap` flag asks the OS for a bit more memory, which hopefully alleviates the problem for larger accounts. --- src/main/AndroidManifest.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml index e89239bc8..16731574e 100644 --- a/src/main/AndroidManifest.xml +++ b/src/main/AndroidManifest.xml @@ -59,6 +59,7 @@ android:hardwareAccelerated="true" android:icon="@mipmap/new_launcher" android:label="@string/app_name" + android:largeHeap="true" android:networkSecurityConfig="@xml/network_security_configuration" android:requestLegacyExternalStorage="true" android:theme="@style/ConversationsTheme"