Fix some crashes

This commit is contained in:
arkon
2021-12-28 16:45:42 -05:00
parent 800583b5e2
commit 353485054e
6 changed files with 13 additions and 16 deletions
@@ -338,6 +338,9 @@ class MangaController :
}
private fun updateToolbarTitleAlpha(@FloatRange(from = 0.0, to = 1.0) alpha: Float? = null) {
// Controller may actually already be destroyed by the time this gets run
binding ?: return
val scrolledList = binding.fullRecycler ?: binding.infoRecycler!!
(activity as? MainActivity)?.binding?.appbar?.titleTextAlpha = when {
// Specific alpha provided