Loading core/java/android/app/ActivityManager.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -74,7 +74,7 @@ public class ActivityManager { static public int staticGetMemoryClass() { static public int staticGetMemoryClass() { // Really brain dead right now -- just take this from the configured // Really brain dead right now -- just take this from the configured // vm heap size, and assume it is in megabytes and thus ends with "m". // vm heap size, and assume it is in megabytes and thus ends with "m". String vmHeapSize = SystemProperties.get("dalvik.vm.growthlimit", ""); String vmHeapSize = SystemProperties.get("dalvik.vm.heapgrowthlimit", ""); if (vmHeapSize != null && !"".equals(vmHeapSize)) { if (vmHeapSize != null && !"".equals(vmHeapSize)) { return Integer.parseInt(vmHeapSize.substring(0, vmHeapSize.length()-1)); return Integer.parseInt(vmHeapSize.substring(0, vmHeapSize.length()-1)); } } Loading Loading
core/java/android/app/ActivityManager.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -74,7 +74,7 @@ public class ActivityManager { static public int staticGetMemoryClass() { static public int staticGetMemoryClass() { // Really brain dead right now -- just take this from the configured // Really brain dead right now -- just take this from the configured // vm heap size, and assume it is in megabytes and thus ends with "m". // vm heap size, and assume it is in megabytes and thus ends with "m". String vmHeapSize = SystemProperties.get("dalvik.vm.growthlimit", ""); String vmHeapSize = SystemProperties.get("dalvik.vm.heapgrowthlimit", ""); if (vmHeapSize != null && !"".equals(vmHeapSize)) { if (vmHeapSize != null && !"".equals(vmHeapSize)) { return Integer.parseInt(vmHeapSize.substring(0, vmHeapSize.length()-1)); return Integer.parseInt(vmHeapSize.substring(0, vmHeapSize.length()-1)); } } Loading