From cbcab5a545369bc06933bdf4c9f2b6289df1f4ca Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Mon, 11 Jul 2022 01:29:58 +0700 Subject: [PATCH] Fix MangaScreen app bar title and nav icon action (#7506) --- app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt | 2 +- .../eu/kanade/presentation/manga/components/MangaSmallAppBar.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt b/app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt index a003a90215..718a540adf 100644 --- a/app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt @@ -228,7 +228,7 @@ private fun MangaScreenSmallImpl( backgroundAlphaProvider = { animatedBgAlpha }, incognitoMode = state.isIncognitoMode, downloadedOnlyMode = state.isDownloadedOnlyMode, - onBackClicked = onBackClicked, + onBackClicked = internalOnBackPressed, onShareClicked = onShareClicked, onDownloadClicked = onDownloadActionClicked, onEditCategoryClicked = onEditCategoryClicked, diff --git a/app/src/main/java/eu/kanade/presentation/manga/components/MangaSmallAppBar.kt b/app/src/main/java/eu/kanade/presentation/manga/components/MangaSmallAppBar.kt index ab05dc365c..1e74d18750 100644 --- a/app/src/main/java/eu/kanade/presentation/manga/components/MangaSmallAppBar.kt +++ b/app/src/main/java/eu/kanade/presentation/manga/components/MangaSmallAppBar.kt @@ -74,7 +74,7 @@ fun MangaSmallAppBar( text = if (isActionMode) actionModeCounter.toString() else title, maxLines = 1, overflow = TextOverflow.Ellipsis, - modifier = Modifier.alpha(titleAlphaProvider()), + modifier = Modifier.alpha(if (isActionMode) 1f else titleAlphaProvider()), ) }, navigationIcon = {