|
|
@ -79,7 +79,7 @@ class DownloadActivity : VMBaseActivity<DownloadViewModel>(R.layout.activity_dow |
|
|
|
when (item.itemId) { |
|
|
|
when (item.itemId) { |
|
|
|
R.id.menu_download -> launch(IO) { |
|
|
|
R.id.menu_download -> launch(IO) { |
|
|
|
if (adapter.downloadMap.isNullOrEmpty()) { |
|
|
|
if (adapter.downloadMap.isNullOrEmpty()) { |
|
|
|
App.db.bookDao().webBooks.forEach { book -> |
|
|
|
adapter.getItems().forEach { book -> |
|
|
|
Download.start( |
|
|
|
Download.start( |
|
|
|
this@DownloadActivity, |
|
|
|
this@DownloadActivity, |
|
|
|
book.bookUrl, |
|
|
|
book.bookUrl, |
|
|
|