app: reformat
This commit is contained in:
parent
998375f28a
commit
c5241dec60
1 changed files with 5 additions and 4 deletions
|
@ -258,9 +258,9 @@ class MainFragment :
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onPreDraw(): Boolean {
|
override fun onPreDraw(): Boolean {
|
||||||
// TODO: Due to draw caching even *this* isn't effective enough to avoid the bottom
|
// This is where I shove literally all the UI logic that won't behave any callback
|
||||||
// sheets continually getting stuck. I need something with even more frequent updates,
|
// or "normal" method I've tried. Surely running this on every frame will actually cause
|
||||||
// or otherwise bottom sheets get stuck.
|
// it to work properly!
|
||||||
|
|
||||||
// We overload CoordinatorLayout far too much to rely on any of it's typical
|
// We overload CoordinatorLayout far too much to rely on any of it's typical
|
||||||
// listener functionality. Just update all transitions before every draw. Should
|
// listener functionality. Just update all transitions before every draw. Should
|
||||||
|
@ -369,7 +369,8 @@ class MainFragment :
|
||||||
.invalidateEnabled()
|
.invalidateEnabled()
|
||||||
|
|
||||||
// Stop the FrameLayout containing the fabs from eating touch events elsewhere
|
// Stop the FrameLayout containing the fabs from eating touch events elsewhere
|
||||||
binding.mainFabContainer.isVisible = binding.homeNewPlaylistFab.mainFab.isVisible && binding.homeShuffleFab.isVisible
|
binding.mainFabContainer.isVisible =
|
||||||
|
binding.homeNewPlaylistFab.mainFab.isVisible || binding.homeShuffleFab.isVisible
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue