Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20004917 authored by Tim Murray's avatar Tim Murray
Browse files

compaction: tweak full compaction again

UNKNOWN_ADJ can be a transient state leading to an app becoming
cached, so accept an app moving from UNKNOWN to CACHED as a valid
time for compaction.

Test: TH
bug 119988524

Change-Id: Ib6fda98a2fa260ed27c0b5c420942f4325fb5112
parent f96451b4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1709,7 +1709,8 @@ public final class OomAdjuster {
                        (app.curAdj == ProcessList.PREVIOUS_APP_ADJ ||
                                app.curAdj == ProcessList.HOME_APP_ADJ)) {
                    mAppCompact.compactAppSome(app);
                } else if (app.setAdj < ProcessList.CACHED_APP_MIN_ADJ
                } else if ((app.setAdj < ProcessList.CACHED_APP_MIN_ADJ
                                || app.setAdj > ProcessList.CACHED_APP_MAX_ADJ)
                        && app.curAdj >= ProcessList.CACHED_APP_MIN_ADJ
                        && app.curAdj <= ProcessList.CACHED_APP_MAX_ADJ) {
                    mAppCompact.compactAppFull(app);