Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Jan 29, 2025
1 parent fae0dd6 commit 89dffa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import android.view.MenuItem
import android.view.MotionEvent
import android.view.SubMenu
import android.view.WindowManager
import android.widget.EditText
import androidx.activity.viewModels
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.widget.PopupMenu
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,10 @@ class BookSourceAdapter(context: Context, val callBack: CallBack) :

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

Expand Down

0 comments on commit 89dffa2

Please sign in to comment.