mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-04-19 09:07:06 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user