Merge pull request #500 from Aga-C/hide-checklist-image

Added hiding checklist image on select to avoid item resizing (#499)
This commit is contained in:
Tibor Kaputa 2022-02-03 22:43:53 +01:00 committed by GitHub
commit 58bff67785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,7 +199,7 @@ class ChecklistAdapter(
}
checklist_image.setImageDrawable(if (checklistItem.isDone) checkDrawable else crossDrawable)
checklist_image.beVisibleIf(showIcons)
checklist_image.beVisibleIf(showIcons && selectedKeys.isEmpty())
checklist_holder.isSelected = isSelected
checklist_drag_handle.beVisibleIf(selectedKeys.isNotEmpty())