Avoid crashing in SourcePreferencesScreen if source can't be loaded

This commit is contained in:
arkon 2023-02-25 15:32:46 -05:00
parent b12c7cf963
commit 4efca04765

View File

@ -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(