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

Commit 6e051cc2 authored by Felipe Leme's avatar Felipe Leme
Browse files

Fixed whitelistManager assignment.

It must be set before looping through all app services...

Fixes: 29480440

Change-Id: I38f78255ea44f00ea4226010d334b94fb4baadb4
parent aab580af
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -19308,6 +19308,7 @@ public final class ActivityManagerService extends ActivityManagerNative
        }
        boolean mayBeTop = false;
        app.whitelistManager = false;
        for (int is = app.services.size()-1;
                is >= 0 && (adj > ProcessList.FOREGROUND_APP_ADJ
@@ -19348,8 +19349,6 @@ public final class ActivityManagerService extends ActivityManagerNative
                }
            }
            app.whitelistManager = false;
            for (int conni = s.connections.size()-1;
                    conni >= 0 && (adj > ProcessList.FOREGROUND_APP_ADJ
                            || schedGroup == ProcessList.SCHED_GROUP_BACKGROUND