Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Dec 22, 2024
1 parent 3b9f8cc commit 251b415
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import io.legado.app.ui.login.SourceLoginActivity
import io.legado.app.ui.widget.recycler.DragSelectTouchHelper
import io.legado.app.ui.widget.recycler.ItemTouchCallback
import io.legado.app.utils.ColorUtils
import io.legado.app.utils.buildMainHandler
import io.legado.app.utils.gone
import io.legado.app.utils.invisible
import io.legado.app.utils.startActivity
Expand All @@ -34,6 +35,7 @@ class BookSourceAdapter(context: Context, val callBack: CallBack) :

private val selected = linkedSetOf<BookSourcePart>()
private val finalMessageRegex = Regex("成功|失败")
private val handler = buildMainHandler()
var showSourceHost = false

val selection: List<BookSourcePart>
Expand Down Expand Up @@ -152,7 +154,7 @@ class BookSourceAdapter(context: Context, val callBack: CallBack) :

override fun onCurrentListChanged() {
callBack.upCountView()
if (showSourceHost) {
handler.post {
notifyItemRangeChanged(0, itemCount, bundleOf("upSourceHost" to null))
}
}
Expand Down

0 comments on commit 251b415

Please sign in to comment.