Bump dependencies

This commit is contained in:
arkon
2023-02-22 23:09:16 -05:00
parent fa61c8fe6f
commit 9432d2d06a
5 changed files with 10 additions and 10 deletions

View File

@ -137,7 +137,7 @@ fun AppBar(
},
title = titleContent,
actions = actions,
colors = TopAppBarDefaults.smallTopAppBarColors(
colors = TopAppBarDefaults.topAppBarColors(
containerColor = MaterialTheme.colorScheme.surfaceColorAtElevation(
elevation = if (isActionMode) 3.dp else 0.dp,
),

View File

@ -142,7 +142,7 @@ fun MangaToolbar(
}
}
},
colors = TopAppBarDefaults.smallTopAppBarColors(
colors = TopAppBarDefaults.topAppBarColors(
containerColor = MaterialTheme.colorScheme
.surfaceColorAtElevation(3.dp)
.copy(alpha = if (isActionMode) 1f else backgroundAlphaProvider()),

View File

@ -49,7 +49,7 @@ fun WebViewScreenContent(
Box {
AppBar(
title = state.pageTitle ?: initialTitle,
subtitle = state.content.getCurrentUrl(),
subtitle = state.lastLoadedUrl,
navigateUp = onNavigateUp,
navigationIcon = Icons.Outlined.Close,
actions = {
@ -81,15 +81,15 @@ fun WebViewScreenContent(
),
AppBar.OverflowAction(
title = stringResource(R.string.action_share),
onClick = { onShare(state.content.getCurrentUrl()!!) },
onClick = { onShare(state.lastLoadedUrl!!) },
),
AppBar.OverflowAction(
title = stringResource(R.string.action_open_in_browser),
onClick = { onOpenInBrowser(state.content.getCurrentUrl()!!) },
onClick = { onOpenInBrowser(state.lastLoadedUrl!!) },
),
AppBar.OverflowAction(
title = stringResource(R.string.pref_clear_cookies),
onClick = { onClearCookies(state.content.getCurrentUrl()!!) },
onClick = { onClearCookies(state.lastLoadedUrl!!) },
),
),
)