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'
pkgNameSuffix = "all.cubari"
extClass = '.CubariFactory'
extVersionCode = 13
extVersionCode = 14
}
apply from: "$rootDir/common.gradle"

View File

@ -15,10 +15,12 @@ class CubariUrlActivity : Activity() {
val pathSegments = intent?.data?.pathSegments
if (host != null && pathSegments != null) {
val query = when (host) {
"m.imgur.com", "imgur.com" -> fromImgur(pathSegments)
val query = with(host) {
when {
equals("m.imgur.com") || equals("imgur.com") -> fromImgur(pathSegments)
else -> fromCubari(pathSegments)
}
}
if (query == null) {
Log.e("CubariUrlActivity", "Unable to parse URI from intent $intent")