Skip to content

Commit 5a797b1

Browse files
committed
avoid dragging the All Apps Fragment while dragging some icon
1 parent 07c167b commit 5a797b1

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/kotlin/com/simplemobiletools/launcher/activities

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/launcher/activities/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ class MainActivity : SimpleActivity(), FlingListener {
283283
if (isWidgetsFragmentExpanded()) {
284284
val newY = mWidgetsFragmentY - diffY
285285
widgets_fragment.y = Math.min(Math.max(0f, newY), mScreenHeight.toFloat())
286-
} else {
286+
} else if (mLongPressedIcon == null) {
287287
val newY = mAllAppsFragmentY - diffY
288288
all_apps_fragment.y = Math.min(Math.max(0f, newY), mScreenHeight.toFloat())
289289
}

0 commit comments

Comments
 (0)