mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fix recents controller app bar at the start
This commit is contained in:
parent
325c628172
commit
1666f8ba4c
1 changed files with 5 additions and 4 deletions
|
@ -205,11 +205,12 @@ class RecentsController(bundle: Bundle? = null) :
|
|||
}
|
||||
)
|
||||
|
||||
if (!isReturning && adapter.itemCount == 0) {
|
||||
activityBinding?.appBar?.y = 0f
|
||||
activityBinding?.appBar?.updateAppBarAfterY(binding.recycler)
|
||||
activityBinding?.appBar?.lockYPos = true
|
||||
}
|
||||
viewScope.launchUI {
|
||||
if (!isReturning && adapter.itemCount == 0) {
|
||||
activityBinding?.appBar?.y = 0f
|
||||
activityBinding?.appBar?.lockYPos = true
|
||||
}
|
||||
val height =
|
||||
activityBinding?.bottomNav?.height ?: view.rootWindowInsetsCompat?.getInsets(
|
||||
systemBars()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue