mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
Additional service fixes from the original author of the issue 2777 fix
to stop the service from being shutdown when we have push enabled
This commit is contained in:
parent
fd61b4f20b
commit
defabdc20c
@ -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())) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user