From cda886ecb34674925135de26ed26414be1224411 Mon Sep 17 00:00:00 2001 From: Jobobby04 Date: Sun, 10 Jan 2021 18:12:14 -0500 Subject: [PATCH] Unknown source compile fix --- app/src/main/java/exh/favorites/FavoritesSyncHelper.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/exh/favorites/FavoritesSyncHelper.kt b/app/src/main/java/exh/favorites/FavoritesSyncHelper.kt index 08dec4d12..be48e0814 100644 --- a/app/src/main/java/exh/favorites/FavoritesSyncHelper.kt +++ b/app/src/main/java/exh/favorites/FavoritesSyncHelper.kt @@ -390,6 +390,7 @@ class FavoritesSyncHelper(val context: Context) { val errorString = context.getString(R.string.favorites_sync_failed_to_add_to_local) + when (result) { is GalleryAddEvent.Fail.Error -> context.getString(R.string.favorites_sync_failed_to_add_to_local_error, it.title, result.logMessage) is GalleryAddEvent.Fail.UnknownType -> context.getString(R.string.favorites_sync_failed_to_add_to_local_unknown_type, it.title, result.galleryUrl) + is GalleryAddEvent.Fail.UnknownSource -> context.getString(R.string.favorites_sync_failed_to_add_to_local_unknown_type, it.title, result.galleryUrl) } if (prefs.exhLenientSync().get()) {