Fix regression which caused the hearth button to be unresponsive

This commit is contained in:
vfsfitvnm
2022-10-07 20:00:09 +02:00
parent d758d2142d
commit 0b995ae9ab

View File

@@ -76,7 +76,11 @@ fun Controls(
mutableStateOf<Long?>(null) mutableStateOf<Long?>(null)
} }
val likedAt by produceSaveableState<Long?>(initialValue = null, stateSaver = autoSaver()) { val likedAt by produceSaveableState<Long?>(
initialValue = null,
stateSaver = autoSaver(),
mediaId
) {
Database Database
.likedAt(mediaId) .likedAt(mediaId)
.flowOn(Dispatchers.IO) .flowOn(Dispatchers.IO)