~singpolyma/cheogram-android

d936c4232efca92ddf51d6e8900c0a1330f32c3d — Stephen Paul Weber 4 months ago c03ebcd
Reduce LRU size to help with RAM pressure
1 files changed, 1 insertions(+), 1 deletions(-)

M src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
M src/main/java/eu/siacs/conversations/services/XmppConnectionService.java => src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +1 -1
@@ 1499,7 1499,7 @@ public class XmppConnectionService extends Service {
        Resolver.init(this);
        updateMemorizingTrustManager();
        final int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024);
        final int cacheSize = maxMemory / 10;
        final int cacheSize = maxMemory / 15;
        this.mDrawableCache = new LruCache<String, Drawable>(cacheSize) {
            @Override
            protected int sizeOf(final String key, final Drawable drawable) {