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

Commit defabdc2 authored by Jesse Vincent's avatar Jesse Vincent
Browse files

Additional service fixes from the original author of the issue 2777 fix

to stop the service from being shutdown when we have push enabled
parent fd61b4f2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -35,6 +35,12 @@ public class PollService extends CoreService {
        context.startService(i);
    }

    @Override
    public void onCreate() {
        super.onCreate();
        setAutoShutdown(false);
    }

    @Override
    public void startService(Intent intent, int startId) {
        if (START_SERVICE.equals(intent.getAction())) {
+7 −0
Original line number Diff line number Diff line
@@ -39,6 +39,13 @@ public class PushService extends CoreService {

    }

    @Override
    public void onCreate() {
        super.onCreate();
        setAutoShutdown(false);
    }


    @Override
    public IBinder onBind(Intent arg0) {
        // TODO Auto-generated method stub