app: reformat

This commit is contained in:
Alexander Capehart 2025-01-08 18:06:18 -07:00
parent 998375f28a
commit c5241dec60
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -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
} }