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

Commit 25febe7f 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: Ia969849ca5577ec66171a675e120114b0c17ff48
parents 6c71211f 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,