Fix some crashes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user