Skip to content

Commit

Permalink
home: fix shuffle not working on rotate
Browse files Browse the repository at this point in the history
  • Loading branch information
OxygenCobalt committed Jan 3, 2024
1 parent b74e622 commit 43af2d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/org/oxycblt/auxio/home/HomeFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ class HomeFragment :
private fun handleSpeedDialBoundaryTouch(event: MotionEvent): Boolean {
val binding = binding ?: return false

if (binding.homeNewPlaylistFab.isUnder(event.x, event.y)) {
if (homeModel.speedDialOpen.value && binding.homeNewPlaylistFab.isUnder(event.x, event.y)) {
// Convert absolute coordinates to relative coordinates
val offsetX = event.x - binding.homeNewPlaylistFab.x
val offsetY = event.y - binding.homeNewPlaylistFab.y
Expand Down

0 comments on commit 43af2d8

Please sign in to comment.