From 5d84bce12204072bc7ab296ce0cdea7efb5cf17c Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Fri, 2 May 2014 13:21:16 -0700 Subject: [PATCH] Fix issue #14492403: Oom scores appear to be incorrect... ...and causing runtime restarts Got a little too aggressive with the delete key. *blush* Change-Id: Icd4637827424211abc2347f7f9407c2d4c95cfad --- .../java/com/android/server/am/ActivityManagerService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java index 042bf5f47b671..bcc63596aa53b 100644 --- a/services/core/java/com/android/server/am/ActivityManagerService.java +++ b/services/core/java/com/android/server/am/ActivityManagerService.java @@ -15186,8 +15186,8 @@ public final class ActivityManagerService extends ActivityManagerNative // it when computing the final cached adj later. Note that we don't need to // worry about this for max adj above, since max adj will always be used to // keep it out of the cached vaues. - adj = app.modifyRawOomAdj(adj); - + app.curAdj = app.modifyRawOomAdj(adj); + app.curSchedGroup = schedGroup; app.curProcState = procState; app.foregroundActivities = foregroundActivities;