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
2 changed files with 13 additions and 0 deletions
|
@ -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 a new issue