robertohuertasm/endless-service

Question about start condition on receiver

Closed this issue · 1 comments

Hi,

this condition:
if (intent.action == Intent.ACTION_BOOT_COMPLETED && getServiceState(context) == ServiceState.STARTED)

shouldn't be:
if (intent.action == Intent.ACTION_BOOT_COMPLETED && getServiceState(context) == ServiceState.STOPPED)

So if the service is stopped than start it?

Thanks

Understood why