mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -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);
|
context.startService(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onCreate() {
|
||||||
|
super.onCreate();
|
||||||
|
setAutoShutdown(false);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void startService(Intent intent, int startId) {
|
public void startService(Intent intent, int startId) {
|
||||||
if (START_SERVICE.equals(intent.getAction())) {
|
if (START_SERVICE.equals(intent.getAction())) {
|
||||||
|
@ -39,6 +39,13 @@ public class PushService extends CoreService {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onCreate() {
|
||||||
|
super.onCreate();
|
||||||
|
setAutoShutdown(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IBinder onBind(Intent arg0) {
|
public IBinder onBind(Intent arg0) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
Loading…
Reference in New Issue
Block a user