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

Commit bf6258e4 authored by Liangcai Li's avatar Liangcai Li Committed by Eddy Witkamp
Browse files

Service: Keep services needing restart.

Services needing restart after crash include:
1) service with 'persistent == true'
2) service explicitly reuqired restart by returning START_STICKY
   or START_REDELIVER_INTENT from onStartCommand

Change-Id: Icda43d349faf344a8d022fc4ec5e928ec3399036
parent 9c498988
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2035,7 +2035,7 @@ public final class ActiveServices {
            synchronized (sr.stats.getBatteryStats()) {
                sr.stats.stopLaunchedLocked();
            }
            if (sr.app != null && !sr.app.persistent) {
            if (sr.app != null && !sr.app.persistent && sr.stopIfKilled) {
                sr.app.services.remove(sr);
            }
            sr.app = null;