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