From 6c8800f26694ac6064ebb587a8773dcf192e0f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Wed, 23 Aug 2023 13:08:13 +0200 Subject: [PATCH] Fix condition for adding swipe movement --- .../com/simplemobiletools/launcher/views/HomeScreenGrid.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/launcher/views/HomeScreenGrid.kt b/app/src/main/kotlin/com/simplemobiletools/launcher/views/HomeScreenGrid.kt index f403840..c4a96d5 100644 --- a/app/src/main/kotlin/com/simplemobiletools/launcher/views/HomeScreenGrid.kt +++ b/app/src/main/kotlin/com/simplemobiletools/launcher/views/HomeScreenGrid.kt @@ -973,7 +973,7 @@ class HomeScreenGrid(context: Context, attrs: AttributeSet, defStyle: Int) : Rel fun setSwipeMovement(diffX: Float) { - if (draggedItem != null) { + if (draggedItem == null) { pager.setSwipeMovement(diffX) } }