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

Commit 7e0fc86f authored by Sergey Nikolaienkov's avatar Sergey Nikolaienkov Committed by Automerger Merge Worker
Browse files

Merge "Fix overriding pending ProcessChangeItems" into rvc-dev am: f45667fd

Change-Id: If53c9b5fe9189471e58409cfb790cf3e25eb69d4
parents a44f4b55 f45667fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -17698,7 +17698,7 @@ public class ActivityManagerService extends IActivityManager.Stub
            proc.setReportedForegroundServiceTypes(fgServiceTypes);
            ProcessChangeItem item = enqueueProcessChangeItemLocked(proc.pid, proc.info.uid);
            item.changes = ProcessChangeItem.CHANGE_FOREGROUND_SERVICES;
            item.changes |= ProcessChangeItem.CHANGE_FOREGROUND_SERVICES;
            item.foregroundServiceTypes = fgServiceTypes;
        }
        if (oomAdj) {
+1 −1
Original line number Diff line number Diff line
@@ -2385,7 +2385,7 @@ public final class OomAdjuster {
                    "Changes in " + app + ": " + changes);
            ActivityManagerService.ProcessChangeItem item =
                    mService.enqueueProcessChangeItemLocked(app.pid, app.info.uid);
            item.changes = changes;
            item.changes |= changes;
            item.foregroundActivities = app.repForegroundActivities;
            item.capability = app.setCapability;
            if (DEBUG_PROCESS_OBSERVERS) Slog.i(TAG_PROCESS_OBSERVERS,