Fix MangaScreen app bar title and nav icon action (#7506)

This commit is contained in:
Ivan Iskandar 2022-07-11 01:29:58 +07:00 committed by GitHub
parent 634ee86bbd
commit cbcab5a545
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,7 @@ private fun MangaScreenSmallImpl(
backgroundAlphaProvider = { animatedBgAlpha }, backgroundAlphaProvider = { animatedBgAlpha },
incognitoMode = state.isIncognitoMode, incognitoMode = state.isIncognitoMode,
downloadedOnlyMode = state.isDownloadedOnlyMode, downloadedOnlyMode = state.isDownloadedOnlyMode,
onBackClicked = onBackClicked, onBackClicked = internalOnBackPressed,
onShareClicked = onShareClicked, onShareClicked = onShareClicked,
onDownloadClicked = onDownloadActionClicked, onDownloadClicked = onDownloadActionClicked,
onEditCategoryClicked = onEditCategoryClicked, onEditCategoryClicked = onEditCategoryClicked,

View File

@ -74,7 +74,7 @@ fun MangaSmallAppBar(
text = if (isActionMode) actionModeCounter.toString() else title, text = if (isActionMode) actionModeCounter.toString() else title,
maxLines = 1, maxLines = 1,
overflow = TextOverflow.Ellipsis, overflow = TextOverflow.Ellipsis,
modifier = Modifier.alpha(titleAlphaProvider()), modifier = Modifier.alpha(if (isActionMode) 1f else titleAlphaProvider()),
) )
}, },
navigationIcon = { navigationIcon = {