Fix regression which caused the hearth button to be unresponsive
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user