Skip to content

Commit

Permalink
为收藏列表添加了全选功能
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaojieonly committed Feb 22, 2025
1 parent 4d9390b commit d5526aa
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,14 @@ class FavoritesScene : BaseScene(), EasyRecyclerView.OnItemClickListener,
) {
if (view.getCheckedItemCount() == 0) {
view.outOfCustomChoiceMode()
} else {
if (mAdapter != null && view.getCheckedItemCount() < mAdapter!!.getItemCount()) {
val fabB = mFabLayout!!.get(8) as FloatingActionButton
fabB.setImageResource(R.drawable.v_check_dark_x24)
}else{
val fabB = mFabLayout!!.get(8) as FloatingActionButton
fabB.setImageResource(R.drawable.v_check_all_dark_x24)
}
}
}

Expand Down

0 comments on commit d5526aa

Please sign in to comment.