优化
This commit is contained in:
@@ -64,6 +64,13 @@ abstract class BaseService : LifecycleService() {
|
|||||||
LifecycleHelp.onServiceDestroy(this)
|
LifecycleHelp.onServiceDestroy(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@CallSuper
|
||||||
|
override fun onTimeout(startId: Int) {
|
||||||
|
super.onTimeout(startId)
|
||||||
|
LogUtils.d(simpleName, "onTimeout startId:$startId")
|
||||||
|
stopSelf()
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 开启前台服务并发送通知
|
* 开启前台服务并发送通知
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user