avoid dragging the All Apps Fragment while dragging some icon

This commit is contained in:
tibbi 2022-10-17 20:33:08 +02:00
parent 07c167b5b3
commit 5a797b1248
1 changed files with 1 additions and 1 deletions

View File

@ -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())
}