Skip to content

Commit 8449589

Browse files
Fix top app bar isn't shown when subscriptions list is empty (#68)
1 parent 312d5b5 commit 8449589

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

app/src/main/kotlin/com/mr3y/podcaster/ui/screens/SubscriptionsScreen.kt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -179,25 +179,25 @@ fun SubscriptionsScreen(
179179
) {
180180
Scaffold(
181181
topBar = {
182-
if (state.subscriptions.isNotEmpty()) {
183-
TopBar(
184-
isTopLevelScreen = true,
185-
onNavIconClick = onNavDrawerClick,
186-
title = {
182+
TopBar(
183+
isTopLevelScreen = true,
184+
onNavIconClick = onNavDrawerClick,
185+
title = {
186+
if (state.subscriptions.isNotEmpty()) {
187187
Text(
188188
text = strings.subscriptions_label,
189189
color = MaterialTheme.colorScheme.onPrimaryTertiary,
190190
style = MaterialTheme.typography.titleMedium,
191191
)
192-
},
193-
colors = TopAppBarDefaults.topAppBarColors(
194-
containerColor = MaterialTheme.colorScheme.primaryTertiary,
195-
navigationIconContentColor = MaterialTheme.colorScheme.onPrimaryTertiary,
196-
actionIconContentColor = MaterialTheme.colorScheme.onPrimaryTertiary,
197-
),
198-
modifier = Modifier.fillMaxWidth(),
199-
)
200-
}
192+
}
193+
},
194+
colors = TopAppBarDefaults.topAppBarColors(
195+
containerColor = MaterialTheme.colorScheme.primaryTertiary,
196+
navigationIconContentColor = MaterialTheme.colorScheme.onPrimaryTertiary,
197+
actionIconContentColor = MaterialTheme.colorScheme.onPrimaryTertiary,
198+
),
199+
modifier = Modifier.fillMaxWidth(),
200+
)
201201
},
202202
containerColor = MaterialTheme.colorScheme.surface,
203203
snackbarHost = {

0 commit comments

Comments
 (0)