Skip to content

Commit ce676db

Browse files
committed
Editor: Fix image loading after 4.0.0 update
Fixes #725 Signed-off-by: IacobIonut01 <paulionut2003@gmail.com>
1 parent 580f8ac commit ce676db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ android {
2424
applicationId = "com.dot.gallery"
2525
minSdk = 30
2626
targetSdk = 36
27-
versionCode = 40070
27+
versionCode = 40071
2828
versionName = "4.0.0"
2929

3030
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

app/src/main/kotlin/com/dot/gallery/feature_node/presentation/edit/EditViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class EditViewModel @Inject constructor(
210210
viewModelScope.launch(Dispatchers.IO) {
211211
_uri.value = uri
212212
val mediaList =
213-
repository.getMediaListByUris(listOf(uri), reviewMode = false).firstOrNull()?.data
213+
repository.getMediaListByUris(listOf(uri), reviewMode = false, onlyMatching = true).firstOrNull()?.data
214214
?: emptyList()
215215
_canOverride.value = mediaList.isNotEmpty()
216216
if (mediaList.isNotEmpty()) {

0 commit comments

Comments
 (0)