|
|
@@ -80,8 +80,7 @@ class CacheBookService : BaseService() {
|
|
|
IntentAction.start -> addDownloadData(
|
|
|
intent.getStringExtra("bookUrl"),
|
|
|
intent.getIntExtra("start", 0),
|
|
|
- intent.getIntExtra("end", 0),
|
|
|
- intent.getBooleanExtra("startDownload", true)
|
|
|
+ intent.getIntExtra("end", 0)
|
|
|
)
|
|
|
|
|
|
IntentAction.remove -> removeDownload(intent.getStringExtra("bookUrl"))
|
|
|
@@ -99,7 +98,7 @@ class CacheBookService : BaseService() {
|
|
|
postEvent(EventBus.UP_DOWNLOAD, "")
|
|
|
}
|
|
|
|
|
|
- private fun addDownloadData(bookUrl: String?, start: Int, end: Int, startDownload: Boolean) {
|
|
|
+ private fun addDownloadData(bookUrl: String?, start: Int, end: Int) {
|
|
|
bookUrl ?: return
|
|
|
execute {
|
|
|
val cacheBook = CacheBook.getOrCreate(bookUrl) ?: return@execute
|