Fix: Reduce the max allocation on 32 bits devices

This commit is contained in:
Boulay Mathias 2023-01-24 19:04:48 +01:00
parent 6a33087aa0
commit a197b906a2

View File

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