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

Commit 89b1a4ee authored by Tim Murray's avatar Tim Murray Committed by Android (Google) Code Review
Browse files

Merge "ActivityManagerService: make bluetooth actually persistent" into pi-dev

parents 84208c72 e010b418
Loading
Loading
Loading
Loading
+8 −2
Original line number Original line Diff line number Diff line
@@ -23515,8 +23515,14 @@ public class ActivityManagerService extends IActivityManager.Stub
                                int newAdj;
                                int newAdj;
                                if ((cr.flags&(Context.BIND_ABOVE_CLIENT
                                if ((cr.flags&(Context.BIND_ABOVE_CLIENT
                                        |Context.BIND_IMPORTANT)) != 0) {
                                        |Context.BIND_IMPORTANT)) != 0) {
                                    newAdj = clientAdj >= ProcessList.PERSISTENT_SERVICE_ADJ
                                    if (clientAdj >= ProcessList.PERSISTENT_SERVICE_ADJ) {
                                            ? clientAdj : ProcessList.PERSISTENT_SERVICE_ADJ;
                                        newAdj = clientAdj;
                                    } else {
                                        // make this service persistent
                                        newAdj = ProcessList.PERSISTENT_SERVICE_ADJ;
                                        schedGroup = ProcessList.SCHED_GROUP_DEFAULT;
                                        procState = ActivityManager.PROCESS_STATE_PERSISTENT;
                                    }
                                } else if ((cr.flags&Context.BIND_NOT_VISIBLE) != 0
                                } else if ((cr.flags&Context.BIND_NOT_VISIBLE) != 0
                                        && clientAdj < ProcessList.PERCEPTIBLE_APP_ADJ
                                        && clientAdj < ProcessList.PERCEPTIBLE_APP_ADJ
                                        && adj > ProcessList.PERCEPTIBLE_APP_ADJ) {
                                        && adj > ProcessList.PERCEPTIBLE_APP_ADJ) {