优化
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user