mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 06:01:49 +01:00
Fix missing appbar when statistics are loading
This commit is contained in:
parent
ce81b76150
commit
8fae92034e
@ -24,11 +24,6 @@ class StatsScreen : Screen {
|
|||||||
val screenModel = rememberScreenModel { StatsScreenModel() }
|
val screenModel = rememberScreenModel { StatsScreenModel() }
|
||||||
val state by screenModel.state.collectAsState()
|
val state by screenModel.state.collectAsState()
|
||||||
|
|
||||||
if (state is StatsScreenState.Loading) {
|
|
||||||
LoadingScreen()
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
Scaffold(
|
Scaffold(
|
||||||
topBar = { scrollBehavior ->
|
topBar = { scrollBehavior ->
|
||||||
AppBar(
|
AppBar(
|
||||||
@ -38,6 +33,11 @@ class StatsScreen : Screen {
|
|||||||
)
|
)
|
||||||
},
|
},
|
||||||
) { paddingValues ->
|
) { paddingValues ->
|
||||||
|
if (state is StatsScreenState.Loading) {
|
||||||
|
LoadingScreen()
|
||||||
|
return@Scaffold
|
||||||
|
}
|
||||||
|
|
||||||
StatsScreenContent(
|
StatsScreenContent(
|
||||||
state = state as StatsScreenState.Success,
|
state = state as StatsScreenState.Success,
|
||||||
paddingValues = paddingValues,
|
paddingValues = paddingValues,
|
||||||
|
Loading…
Reference in New Issue
Block a user