pull/63/head
kunfei 5 years ago
parent 1de48788fe
commit abbc64f356
  1. 7
      app/src/main/java/io/legado/app/service/DownloadService.kt

@ -32,7 +32,7 @@ class DownloadService : BaseService() {
intent.getIntExtra("start", 0),
intent.getIntExtra("end", 0)
)
Action.stop -> stopSelf()
Action.stop -> stopDownload()
}
}
return super.onStartCommand(intent, flags, startId)
@ -75,6 +75,11 @@ class DownloadService : BaseService() {
}
}
private fun stopDownload() {
tasks.clear()
stopSelf()
}
/**
* 更新通知
*/

Loading…
Cancel
Save