From 717d6b664c8f15833aba27d72b4194f6b1e89600 Mon Sep 17 00:00:00 2001 From: Amine Date: Fri, 24 Jan 2025 21:04:15 +0100 Subject: [PATCH] fix: Handle empty url issue, again. --- .../apps/readerforselfossv2/android/utils/glide/GlideUtils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()}"