getMemoryClass -> getLargeMemoryClass

Fixes #6812

// FREEBIe
This commit is contained in:
Moxie Marlinspike 2017-07-21 16:01:32 -07:00
parent 82b5b35d3b
commit 0b39224d88

View File

@ -428,7 +428,7 @@ public class Util {
ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
return (VERSION.SDK_INT >= VERSION_CODES.KITKAT && activityManager.isLowRamDevice()) || 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) { public static int clamp(int value, int min, int max) {