pull/52/head
parent
6f62548c0f
commit
bdbde40214
@ -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…
Reference in new issue