Fixup! Workaround ComposeView in RVView
This commit is contained in:
1 parent
23366c8ea1
commit
c8a3db8a3e
1 file changed
+1
-1
@@ -111,7 +111,7 @@ fun GalleryInfoListItem(
|
||||
bottom.linkTo(if (showFav) favRef.top else postedRef.top)
|
||||
},
|
||||
) {
|
||||
val download by produceState(DownloadManager.containDownloadInfo(info.gid), info.gid) {
|
||||
val download by produceState(false, info.gid) {
|
||||
// Workaround ComposeView in RecyclerView, since view is reused, remembered value will not update when setContent with similar @Composable lambda, since composer group key is the same
|
||||
value = DownloadManager.containDownloadInfo(info.gid)
|
||||
DownloadManager.stateFlow(info.gid).collect {
|
||||
|
||||
Reference in new issue
Block a user