diff options
| author | 2016-05-16 14:53:29 -0700 | |
|---|---|---|
| committer | 2016-05-16 14:53:29 -0700 | |
| commit | 666212b75c3acf41fffaad7c7199eda469a6edcf (patch) | |
| tree | 443c55d74a4c51dc3740c69387b5802244fd52b4 | |
| parent | b0d38b6d47a9f7e94135fc64449e81f9dc47f3eb (diff) | |
Make persistent apps become top correctly.
Sometimes, a persistent app should be the top app (recents). Make sure
such an app can use the top-app cpuset.
bug 28317812
bug 28794389
Change-Id: I756cec3fbab8cc552a6d90c007aa2e07f6b78dbc
| -rw-r--r-- | services/core/java/com/android/server/am/ActivityManagerService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java index ded65569c395..1b0a22e46b2e 100644 --- a/services/core/java/com/android/server/am/ActivityManagerService.java +++ b/services/core/java/com/android/server/am/ActivityManagerService.java @@ -18549,6 +18549,8 @@ public final class ActivityManagerService extends ActivityManagerNative app.systemNoUi = true; if (app == TOP_APP) { app.systemNoUi = false; + app.curSchedGroup = ProcessList.SCHED_GROUP_TOP_APP; + app.adjType = "pers-top-activity"; } else if (activitiesSize > 0) { for (int j = 0; j < activitiesSize; j++) { final ActivityRecord r = app.activities.get(j); |