Update stdlib calls to bypass NoClassDefFoundError. (#12274)

This commit is contained in:
funkyhippo 2022-06-22 05:41:11 -04:00 committed by GitHub
parent f2166ded17
commit c2574260d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Cubari' extName = 'Cubari'
pkgNameSuffix = "all.cubari" pkgNameSuffix = "all.cubari"
extClass = '.CubariFactory' extClass = '.CubariFactory'
extVersionCode = 13 extVersionCode = 14
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -15,9 +15,11 @@ class CubariUrlActivity : Activity() {
val pathSegments = intent?.data?.pathSegments val pathSegments = intent?.data?.pathSegments
if (host != null && pathSegments != null) { if (host != null && pathSegments != null) {
val query = when (host) { val query = with(host) {
"m.imgur.com", "imgur.com" -> fromImgur(pathSegments) when {
else -> fromCubari(pathSegments) equals("m.imgur.com") || equals("imgur.com") -> fromImgur(pathSegments)
else -> fromCubari(pathSegments)
}
} }
if (query == null) { if (query == null) {