From 0b39224d88e0ce3a063b8b642509e664df255791 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Fri, 21 Jul 2017 16:01:32 -0700 Subject: [PATCH] getMemoryClass -> getLargeMemoryClass Fixes #6812 // FREEBIe --- src/org/thoughtcrime/securesms/util/Util.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/util/Util.java b/src/org/thoughtcrime/securesms/util/Util.java index 0848bd9ea2..453afbc85e 100644 --- a/src/org/thoughtcrime/securesms/util/Util.java +++ b/src/org/thoughtcrime/securesms/util/Util.java @@ -428,7 +428,7 @@ public class Util { ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); return (VERSION.SDK_INT >= VERSION_CODES.KITKAT && activityManager.isLowRamDevice()) || - activityManager.getMemoryClass() <= 64; + activityManager.getLargeMemoryClass() <= 64; } public static int clamp(int value, int min, int max) {