diff --git a/app/src/main/assets/updateLog.md b/app/src/main/assets/updateLog.md index e21a5d9d4..723fab64b 100644 --- a/app/src/main/assets/updateLog.md +++ b/app/src/main/assets/updateLog.md @@ -4,6 +4,9 @@ * 先在旧版阅读2.19.xxxxxx进行备份,再在新版阅读3.0的【我的】中,点击【备份与恢复】,选择【导入旧版本数据】,提示存储权限,选择允许即可导入成功。 * 注意:由于安卓10更改了权限策略,还需要给「允许安装其他应用」的权限才能导入源。 +**2019/12/03** +* from Celeter1、调试log修改 2、增加书源字符串分享(RSS未包含) 3、增加导出选中的源(包含书源、RSS、替换规则) + **2019/12/02** * 修复一些bug,书架网格布局完成 diff --git a/app/src/main/java/io/legado/app/service/DownloadService.kt b/app/src/main/java/io/legado/app/service/DownloadService.kt index f2ab3fbb6..591d17733 100644 --- a/app/src/main/java/io/legado/app/service/DownloadService.kt +++ b/app/src/main/java/io/legado/app/service/DownloadService.kt @@ -21,7 +21,11 @@ class DownloadService : BaseService() { override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { intent?.action?.let { action -> when (action) { - Action.start -> download() + Action.start -> download( + intent.getStringExtra("bookUrl"), + intent.getIntExtra("start", 0), + intent.getIntExtra("end", 0) + ) Action.stop -> stopSelf() } } @@ -33,7 +37,8 @@ class DownloadService : BaseService() { searchPool.close() } - private fun download() { + private fun download(bookUrl: String?, start: Int, end: Int) { + if (bookUrl == null) return }