From c2574260d26549dc51fe6857b5d23feaa4af8928 Mon Sep 17 00:00:00 2001 From: funkyhippo <52957110+funkyhippo@users.noreply.github.com> Date: Wed, 22 Jun 2022 05:41:11 -0400 Subject: [PATCH] Update stdlib calls to bypass NoClassDefFoundError. (#12274) --- src/all/cubari/build.gradle | 2 +- .../tachiyomi/extension/all/cubari/CubariUrlActivity.kt | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/all/cubari/build.gradle b/src/all/cubari/build.gradle index 1385eacb6..5b4a0ee78 100644 --- a/src/all/cubari/build.gradle +++ b/src/all/cubari/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Cubari' pkgNameSuffix = "all.cubari" extClass = '.CubariFactory' - extVersionCode = 13 + extVersionCode = 14 } apply from: "$rootDir/common.gradle" diff --git a/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/CubariUrlActivity.kt b/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/CubariUrlActivity.kt index 4d06f04e9..de2a9ca6c 100644 --- a/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/CubariUrlActivity.kt +++ b/src/all/cubari/src/eu/kanade/tachiyomi/extension/all/cubari/CubariUrlActivity.kt @@ -15,9 +15,11 @@ class CubariUrlActivity : Activity() { val pathSegments = intent?.data?.pathSegments if (host != null && pathSegments != null) { - val query = when (host) { - "m.imgur.com", "imgur.com" -> fromImgur(pathSegments) - else -> fromCubari(pathSegments) + val query = with(host) { + when { + equals("m.imgur.com") || equals("imgur.com") -> fromImgur(pathSegments) + else -> fromCubari(pathSegments) + } } if (query == null) {