diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsController.kt index 2f72489f2b..b235b3cf9f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsController.kt @@ -520,11 +520,14 @@ class MangaDetailsController : BaseController, val colorSecondary = activity?.getResourceColor( R.attr.colorSecondary ) ?: Color.BLACK - (activity as MainActivity).appbar.setBackgroundColor(colorSecondary) - (activity as MainActivity).toolbar.setBackgroundColor(colorSecondary) + if (router.backstack.last().controller() !is MangaDetailsController) { + (activity as MainActivity).appbar.setBackgroundColor(colorSecondary) + (activity as MainActivity).toolbar.setBackgroundColor(colorSecondary) - activity?.window?.statusBarColor = activity?.getResourceColor(android.R.attr - .statusBarColor) ?: colorSecondary + activity?.window?.statusBarColor = activity?.getResourceColor( + android.R.attr.statusBarColor + ) ?: colorSecondary + } } }