Skip to content

Commit 3d04052

Browse files
authored
Fixed infinite recursion segfault bug due to copy paste mistake
1 parent 267fa5d commit 3d04052

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

app/src/main/java/org/akanework/gramophone/logic/utils/CoilArtPipeline.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,7 @@ object CoilArtPipeline {
390390
"\\\\").replace("%", "\\%")
391391
.replace("_", "\\_") + "/%"), sortOrder).use {
392392
if (it == null || !it.moveToFirst()) {
393-
return@Fetcher continueFetchingOrFail(
394-
LoadAudioCoverData(
395-
ContentUris.parseId(uri), file
396-
), options, imageLoader
397-
)
393+
throw NoAlbumArtException("No album art found")
398394
}
399395
ContentUris.withAppendedId(
400396
MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
@@ -444,4 +440,4 @@ object CoilArtPipeline {
444440
listener.dispose()
445441
}
446442
}
447-
}
443+
}

0 commit comments

Comments
 (0)