Skip to content

Commit d5526aa

Browse files
committed
为收藏列表添加了全选功能
1 parent 4d9390b commit d5526aa

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

app/src/main/java/com/hippo/ehviewer/ui/scene/gallery/list/FavoritesScene.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,14 @@ class FavoritesScene : BaseScene(), EasyRecyclerView.OnItemClickListener,
10341034
) {
10351035
if (view.getCheckedItemCount() == 0) {
10361036
view.outOfCustomChoiceMode()
1037+
} else {
1038+
if (mAdapter != null && view.getCheckedItemCount() < mAdapter!!.getItemCount()) {
1039+
val fabB = mFabLayout!!.get(8) as FloatingActionButton
1040+
fabB.setImageResource(R.drawable.v_check_dark_x24)
1041+
}else{
1042+
val fabB = mFabLayout!!.get(8) as FloatingActionButton
1043+
fabB.setImageResource(R.drawable.v_check_all_dark_x24)
1044+
}
10371045
}
10381046
}
10391047

0 commit comments

Comments
 (0)