mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2025-01-11 21:39:10 +01:00
Fixed crash when pressing up arrow in search activity
This commit is contained in:
parent
8da4b677ea
commit
6e99caf458
@ -542,9 +542,10 @@ class MangaDetailsController : BaseController,
|
|||||||
val colorSecondary = activity?.getResourceColor(
|
val colorSecondary = activity?.getResourceColor(
|
||||||
R.attr.colorSecondary
|
R.attr.colorSecondary
|
||||||
) ?: Color.BLACK
|
) ?: Color.BLACK
|
||||||
if (router.backstack.last().controller() !is MangaDetailsController) {
|
if (router.backstackSize > 0 &&
|
||||||
(activity as MainActivity).appbar.setBackgroundColor(colorSecondary)
|
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(
|
activity?.window?.statusBarColor = activity?.getResourceColor(
|
||||||
android.R.attr.statusBarColor
|
android.R.attr.statusBarColor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user