ChapterDownloadIndicator: Fixes and improvements (#7485)

* Increased touch target
* Fix downloaded icon smaller than other states
* Deferred state reads to minimize recompose works
* Move things around to eliminate unnecessary elements
This commit is contained in:
Ivan Iskandar
2022-07-09 23:38:33 +07:00
committed by GitHub
parent 34906a7425
commit e56f6c1017
4 changed files with 120 additions and 109 deletions
@@ -685,8 +685,8 @@ private fun LazyListScope.sharedChapterItems(
read = chapter.read,
bookmark = chapter.bookmark,
selected = selected.contains(chapterItem),
downloadState = downloadState,
downloadProgress = downloadProgress,
downloadStateProvider = { downloadState },
downloadProgressProvider = { downloadProgress },
onLongClick = {
val dispatched = onChapterItemLongClick(
chapterItem = chapterItem,