mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-25 02:51:47 +01:00
Fixed opaque status bar when tapping on 2 manga covers at the same time
because thats easier to fix that the double tappers
This commit is contained in:
parent
658a1a996b
commit
d47a8c6ed9
@ -520,11 +520,14 @@ class MangaDetailsController : BaseController,
|
|||||||
val colorSecondary = activity?.getResourceColor(
|
val colorSecondary = activity?.getResourceColor(
|
||||||
R.attr.colorSecondary
|
R.attr.colorSecondary
|
||||||
) ?: Color.BLACK
|
) ?: Color.BLACK
|
||||||
(activity as MainActivity).appbar.setBackgroundColor(colorSecondary)
|
if (router.backstack.last().controller() !is MangaDetailsController) {
|
||||||
(activity as MainActivity).toolbar.setBackgroundColor(colorSecondary)
|
(activity as MainActivity).appbar.setBackgroundColor(colorSecondary)
|
||||||
|
(activity as MainActivity).toolbar.setBackgroundColor(colorSecondary)
|
||||||
|
|
||||||
activity?.window?.statusBarColor = activity?.getResourceColor(android.R.attr
|
activity?.window?.statusBarColor = activity?.getResourceColor(
|
||||||
.statusBarColor) ?: colorSecondary
|
android.R.attr.statusBarColor
|
||||||
|
) ?: colorSecondary
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user