desktop, android: fix image not appearing in view when received (#3504)

* desktop, android: fix image not appearing in view when received

* change to KeyChangeEffect
This commit is contained in:
Evgeny Poberezkin 2023-12-03 15:42:43 +00:00 committed by GitHub
parent 6a9a67db14
commit acaa597c90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,6 +164,12 @@ fun CIImageView(
}
}
}
} else {
KeyChangeEffect(file) {
if (res.value == null) {
res.value = imageAndFilePath(file)
}
}
}
val loaded = res.value
if (loaded != null) {