mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-05 21:45:08 +01:00
Avoid crashing in SourcePreferencesScreen if source can't be loaded
This commit is contained in:
parent
b12c7cf963
commit
4efca04765
@ -58,7 +58,7 @@ class SourcePreferencesScreen(val sourceId: Long) : Screen() {
|
||||
Scaffold(
|
||||
topBar = {
|
||||
TopAppBar(
|
||||
title = { Text(text = Injekt.get<SourceManager>().get(sourceId)!!.toString()) },
|
||||
title = { Text(text = Injekt.get<SourceManager>().getOrStub(sourceId).toString()) },
|
||||
navigationIcon = {
|
||||
IconButton(onClick = navigator::pop) {
|
||||
Icon(
|
||||
|
Loading…
Reference in New Issue
Block a user