Update stdlib calls to bypass NoClassDefFoundError. (#12274)
This commit is contained in:
parent
f2166ded17
commit
c2574260d2
|
@ -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"
|
||||||
|
|
|
@ -15,10 +15,12 @@ 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 {
|
||||||
|
equals("m.imgur.com") || equals("imgur.com") -> fromImgur(pathSegments)
|
||||||
else -> fromCubari(pathSegments)
|
else -> fromCubari(pathSegments)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (query == null) {
|
if (query == null) {
|
||||||
Log.e("CubariUrlActivity", "Unable to parse URI from intent $intent")
|
Log.e("CubariUrlActivity", "Unable to parse URI from intent $intent")
|
||||||
|
|
Loading…
Reference in New Issue