Fix guya URL activity. (#4176)

This commit is contained in:
funkyhippo 2020-08-21 00:13:30 -07:00 committed by GitHub
parent 9dc5d2ca83
commit 14a085bf6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Guya'
pkgNameSuffix = "en.guya"
extClass = '.Guya'
extVersionCode = 11
extVersionCode = 12
libVersion = '1.2'
}

View File

@ -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