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

Commit 68fbd6a4 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Use process state to filter >= UI_HIDDEN" into mnc-dev

parents 4629f1c5 c5dce016
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3658,7 +3658,7 @@ public final class ActivityManagerService extends ActivityManagerNative
            }
            if (app.trimMemoryLevel < level && app.thread != null &&
                    (level < ComponentCallbacks2.TRIM_MEMORY_UI_HIDDEN ||
                            app.trimMemoryLevel >= ComponentCallbacks2.TRIM_MEMORY_UI_HIDDEN)) {
                            app.curProcState >= ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND)) {
                try {
                    app.thread.scheduleTrimMemory(level);
                    app.trimMemoryLevel = level;