mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Fix crash when opening the MangaController from... (#5419)
...the browse search null safe cast to TextView because when searching for manga in a source, the toolbar has no children and find() returns null.
This commit is contained in:
		@@ -296,7 +296,7 @@ class MangaController :
 | 
			
		||||
        val scrolledList = binding.fullRecycler ?: binding.infoRecycler!!
 | 
			
		||||
        if (toolbarTextView == null) {
 | 
			
		||||
            toolbarTextView = (activity as? MainActivity)?.binding?.toolbar?.children
 | 
			
		||||
                ?.find { it is TextView } as TextView
 | 
			
		||||
                ?.find { it is TextView } as? TextView
 | 
			
		||||
        }
 | 
			
		||||
        toolbarTextView?.alpha = when {
 | 
			
		||||
            // Specific alpha provided
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user