Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Sep 8, 2024
1 parent 46b47be commit 4cb69f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ class TxtTocRuleActivity : VMBaseActivity<ActivityTxtTocRuleBinding, TxtTocRuleV
AppLog.put("TXT目录规则界面获取数据失败\n${it.localizedMessage}", it)
}.flowOn(IO).conflate().collect { tocRules ->
adapter.setItems(tocRules, adapter.diffItemCallBack)
upCountView()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ class TxtTocRuleAdapter(context: Context, private val callBack: CallBack) :
}
}

override fun onCurrentListChanged() {
callBack.upCountView()
}

private fun showMenu(view: View, position: Int) {
val source = getItem(position) ?: return
val popupMenu = PopupMenu(context, view)
Expand Down

0 comments on commit 4cb69f6

Please sign in to comment.