Fix: Raise RAM limit on low end 64 bits devices

technically, it may lower the limit of a few people, but not to a concerning extend
This commit is contained in:
Mathias-Boulay
2022-11-19 21:39:59 +01:00
parent a162572c7a
commit 0c080aad19

View File

@@ -26,7 +26,7 @@ public class LauncherPreferenceJavaFragment extends LauncherPreferenceFragment {
CustomSeekBarPreference seek7 = findPreference("allocation");
seek7.setMin(256);
if(is32BitsDevice()) maxRAM = Math.min(1100, deviceRam);
if(is32BitsDevice() || deviceRam < 2048) maxRAM = Math.min(1100, deviceRam);
else maxRAM = deviceRam - (deviceRam < 3064 ? 800 : 1024); //To have a minimum for the device to breathe
seek7.setMax(maxRAM);