mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -64,6 +64,13 @@ abstract class BaseService : LifecycleService() {
|
||||
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