avoid dragging the All Apps Fragment while dragging some icon
This commit is contained in:
parent
07c167b5b3
commit
5a797b1248
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue