fix: Fix status bar background in Home tab when Collapsing App Bar mode is enabled
This commit is contained in:
parent
ea5072945e
commit
3ae38cb1de
2 changed files with 2 additions and 7 deletions
|
@ -101,9 +101,6 @@ class HomeFragment :
|
|||
colorButtons()
|
||||
postponeEnterTransition()
|
||||
view.doOnPreDraw { startPostponedEnterTransition() }
|
||||
binding.appBarLayout.statusBarForeground =
|
||||
MaterialShapeDrawable.createWithElevationOverlay(requireContext())
|
||||
binding.toolbar.drawNextToNavbar()
|
||||
view.doOnLayout {
|
||||
adjustPlaylistButtons()
|
||||
}
|
||||
|
@ -178,7 +175,7 @@ class HomeFragment :
|
|||
findNavController().navigate(R.id.action_search, null, navOptions)
|
||||
}
|
||||
val hexColor = String.format("#%06X", 0xFFFFFF and accentColor())
|
||||
val appName = "Retro <span style='color:$hexColor';>Music</span>".parseAsHtml()
|
||||
val appName = "<font color=$hexColor>Retro Music</font>".parseAsHtml()
|
||||
binding.appBarLayout.title = appName
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
-->
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fitsSystemWindows="true">
|
||||
|
@ -23,8 +22,7 @@
|
|||
style="?appBarLayoutStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:fitsSystemWindows="true"
|
||||
android:theme="@style/CenteredCheckBoxTheme" />
|
||||
android:fitsSystemWindows="true" />
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:id="@+id/container"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue