From 5a797b1248c8075ba1a0679cec9c482be979a52b Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 17 Oct 2022 20:33:08 +0200 Subject: [PATCH] avoid dragging the All Apps Fragment while dragging some icon --- .../com/simplemobiletools/launcher/activities/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt index 5a88b48..7e52ced 100644 --- a/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt @@ -283,7 +283,7 @@ class MainActivity : SimpleActivity(), FlingListener { if (isWidgetsFragmentExpanded()) { val newY = mWidgetsFragmentY - diffY widgets_fragment.y = Math.min(Math.max(0f, newY), mScreenHeight.toFloat()) - } else { + } else if (mLongPressedIcon == null) { val newY = mAllAppsFragmentY - diffY all_apps_fragment.y = Math.min(Math.max(0f, newY), mScreenHeight.toFloat()) }