1
0
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:
Jesse Vincent 2011-09-28 19:36:54 -05:00
parent fd61b4f20b
commit defabdc20c
2 changed files with 13 additions and 0 deletions

View File

@ -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())) {

View File

@ -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