Avoid crashing in SourcePreferencesScreen if source can't be loaded
(cherry picked from commit 4efca047658761e54cc7574a6e33ed681de3f40a) (cherry picked from commit 897d019f0bcccbce13e65b07efe24a2d3ac80548)
This commit is contained in:
parent
7f9848db99
commit
a28b54f1a1
@ -62,7 +62,7 @@ class SourcePreferencesScreen(val sourceId: Long) : Screen {
|
|||||||
Scaffold(
|
Scaffold(
|
||||||
topBar = {
|
topBar = {
|
||||||
TopAppBar(
|
TopAppBar(
|
||||||
title = { Text(text = Injekt.get<SourceManager>().get(sourceId)!!.toString()) },
|
title = { Text(text = Injekt.get<SourceManager>().getOrStub(sourceId).toString()) },
|
||||||
navigationIcon = {
|
navigationIcon = {
|
||||||
IconButton(onClick = navigator::pop) {
|
IconButton(onClick = navigator::pop) {
|
||||||
Icon(
|
Icon(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user