Fix FavoritesScene crash
This commit is contained in:
1 parent
c9ef0e5406
commit
9b843e84b2
1 file changed
+2
-4
@@ -231,10 +231,8 @@ class FavoritesScene :
|
||||
// keyword of mUrlBuilder, fav cat of mUrlBuilder, mFavCatArray.
|
||||
// They changed, call it
|
||||
private fun updateSearchBar() {
|
||||
val context = context
|
||||
if (null == context || null == mUrlBuilder) {
|
||||
return
|
||||
}
|
||||
_binding ?: return
|
||||
mUrlBuilder ?: return
|
||||
|
||||
// Update title
|
||||
val favCatName: String = when (val favCat = mUrlBuilder!!.favCat) {
|
||||
|
||||
Reference in new issue
Block a user