From 43af2d866d305c2cb7caa8eda0f4027b0e3f82bf Mon Sep 17 00:00:00 2001 From: Alexander Capehart Date: Wed, 3 Jan 2024 09:26:28 -0700 Subject: [PATCH] home: fix shuffle not working on rotate --- app/src/main/java/org/oxycblt/auxio/home/HomeFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/oxycblt/auxio/home/HomeFragment.kt b/app/src/main/java/org/oxycblt/auxio/home/HomeFragment.kt index aacf82749..be9d83007 100644 --- a/app/src/main/java/org/oxycblt/auxio/home/HomeFragment.kt +++ b/app/src/main/java/org/oxycblt/auxio/home/HomeFragment.kt @@ -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