pull/52/head
kunfei 5 years ago
parent 6f62548c0f
commit bdbde40214
  1. 18
      app/src/main/java/io/legado/app/service/help/Download.kt

@ -0,0 +1,18 @@
package io.legado.app.service.help
import android.content.Context
import android.content.Intent
import io.legado.app.service.DownloadService
object Download {
fun start(context: Context, bookUrl: String, start: Int, end: Int) {
Intent(context, DownloadService::class.java).let {
it.putExtra("bookUrl", bookUrl)
it.putExtra("start", start)
it.putExtra("end", end)
context.startService(it)
}
}
}
Loading…
Cancel
Save