CheckSource.kt移除没有选择的提示

pull/1574/head
Xwite 3 years ago
parent cddbe9b01d
commit 2a00fca542
  1. 5
      app/src/main/java/io/legado/app/model/CheckSource.kt

@ -6,7 +6,6 @@ import io.legado.app.constant.IntentAction
import io.legado.app.data.entities.BookSource
import io.legado.app.service.CheckSourceService
import io.legado.app.utils.startService
import io.legado.app.utils.toastOnUi
import io.legado.app.help.CacheManager
import splitties.init.appCtx
@ -26,10 +25,6 @@ object CheckSource {
}
fun start(context: Context, sources: List<BookSource>) {
if (sources.isEmpty()) {
context.toastOnUi(R.string.non_select)
return
}
val selectedIds: ArrayList<String> = arrayListOf()
sources.map {
selectedIds.add(it.bookSourceUrl)

Loading…
Cancel
Save