diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-03-08 15:53:25 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-03-08 15:53:25 -0800 |
commit | 7ad33c8f9e7ecd356979dbad23c6c171b4f3339d (patch) | |
tree | 98f4b97226eff9768ed8be831337682f235390a6 /core/java/android/app | |
parent | 0aaa11ed5be45170fb2535a6ce021c92b18d8878 (diff) | |
download | frameworks_base-7ad33c8f9e7ecd356979dbad23c6c171b4f3339d.zip frameworks_base-7ad33c8f9e7ecd356979dbad23c6c171b4f3339d.tar.gz frameworks_base-7ad33c8f9e7ecd356979dbad23c6c171b4f3339d.tar.bz2 |
Fix issue #4066157: ActivityManager.getMemoryClass() returning large memory class
Change-Id: I1970252e07f703087ac96378410ae2b6e6e4c2d3
Diffstat (limited to 'core/java/android/app')
-rw-r--r-- | core/java/android/app/ActivityManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/app/ActivityManager.java b/core/java/android/app/ActivityManager.java index 930c6b0..b6581e9 100644 --- a/core/java/android/app/ActivityManager.java +++ b/core/java/android/app/ActivityManager.java @@ -74,7 +74,7 @@ public class ActivityManager { static public int staticGetMemoryClass() { // 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". - String vmHeapSize = SystemProperties.get("dalvik.vm.growthlimit", ""); + String vmHeapSize = SystemProperties.get("dalvik.vm.heapgrowthlimit", ""); if (vmHeapSize != null && !"".equals(vmHeapSize)) { return Integer.parseInt(vmHeapSize.substring(0, vmHeapSize.length()-1)); } |