mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fixed status bar color being incorrect sometimes
This commit is contained in:
parent
b16d164148
commit
5d0dafda7e
1 changed files with 1 additions and 0 deletions
|
@ -492,6 +492,7 @@ fun Controller.setAppBarBG(value: Float, includeTabView: Boolean = false) {
|
||||||
val floatingBar =
|
val floatingBar =
|
||||||
(this as? FloatingSearchInterface)?.showFloatingBar() == true && !includeTabView
|
(this as? FloatingSearchInterface)?.showFloatingBar() == true && !includeTabView
|
||||||
if ((this as? BottomSheetController)?.sheetIsFullscreen() == true) return
|
if ((this as? BottomSheetController)?.sheetIsFullscreen() == true) return
|
||||||
|
if (router.backstack.lastOrNull()?.controller != this) return
|
||||||
if (floatingBar) {
|
if (floatingBar) {
|
||||||
(activityBinding?.cardView as? CardView)?.setCardBackgroundColor(context.getResourceColor(R.attr.colorPrimaryVariant))
|
(activityBinding?.cardView as? CardView)?.setCardBackgroundColor(context.getResourceColor(R.attr.colorPrimaryVariant))
|
||||||
activityBinding?.appBar?.setBackgroundColor(Color.TRANSPARENT)
|
activityBinding?.appBar?.setBackgroundColor(Color.TRANSPARENT)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue