Fix guya URL activity. (#4176)
This commit is contained in:
parent
9dc5d2ca83
commit
14a085bf6b
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'Guya'
|
extName = 'Guya'
|
||||||
pkgNameSuffix = "en.guya"
|
pkgNameSuffix = "en.guya"
|
||||||
extClass = '.Guya'
|
extClass = '.Guya'
|
||||||
extVersionCode = 11
|
extVersionCode = 12
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ class GuyaUrlActivity : Activity() {
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
val pathSegments = intent?.data?.pathSegments
|
val pathSegments = intent?.data?.pathSegments
|
||||||
if (pathSegments != null && pathSegments.size == 3) {
|
if (pathSegments != null && pathSegments.size >= 3) {
|
||||||
val slug = pathSegments[2]
|
val slug = pathSegments[2]
|
||||||
|
|
||||||
// Gotta do it like this since slug title != actual title
|
// Gotta do it like this since slug title != actual title
|
||||||
|
|
Loading…
Reference in New Issue