diff --git a/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/utils/glide/GlideUtils.kt b/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/utils/glide/GlideUtils.kt index b9d179e..8e4009d 100644 --- a/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/utils/glide/GlideUtils.kt +++ b/androidApp/src/main/java/bou/amine/apps/readerforselfossv2/android/utils/glide/GlideUtils.kt @@ -24,9 +24,9 @@ import kotlin.io.encoding.ExperimentalEncodingApi private const val PRELOAD_IMAGE_TIMEOUT = 10000 @OptIn(ExperimentalEncodingApi::class) -fun String.toGlideUrl(appSettingsService: AppSettingsService): GlideUrl { +fun String.toGlideUrl(appSettingsService: AppSettingsService): Any { // GlideUrl Or String if (this.isEmptyOrNullOrNullString()) { - return GlideUrl("") + return "" } if (appSettingsService.getBasicUserName().isNotEmpty()) { val authString = "${appSettingsService.getBasicUserName()}:${appSettingsService.getBasicPassword()}"