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

Commit 34d48ca4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix isLastMemoryLevelNormal check for Service B computation" into main

parents 68245f16 ef20d0ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2553,7 +2553,7 @@ public class OomAdjuster {
                    double cachedRestoreThreshold =
                            mProcessList.getCachedRestoreThresholdKb() * thresholdModifier;

                    if (isLastMemoryLevelNormal() && lastPssOrRss >= cachedRestoreThreshold) {
                    if (!isLastMemoryLevelNormal() && lastPssOrRss >= cachedRestoreThreshold) {
                        state.setServiceHighRam(true);
                        state.setServiceB(true);
                        //Slog.i(TAG, "ADJ " + app + " high ram!");