@ -1,7 +1,7 @@
package io.legado.app.constant
object Action {
const val start = "start"
const val play = "play"
const val stop = "stop"
const val resume = "resume"
@ -18,6 +18,7 @@ class DownloadService : BaseService() {
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
intent?.action?.let { action ->
when (action) {
Action.start -> download()
Action.stop -> stopSelf()
}
@ -28,6 +29,10 @@ class DownloadService : BaseService() {
super.onDestroy()
private fun download() {
/**
* 更新通知
*/