Fix regression which broke Workspace flings in RTL am: 5360b6ee4f

Change-Id: Iabeb3b8975706c3b19cd8110f687cea3504a046c
This commit is contained in:
Adam Cohen
2017-07-18 23:19:43 +00:00
+1 -1
View File
@@ -1401,7 +1401,7 @@ public class Workspace extends PagedView
@Override
protected boolean shouldFlingForVelocity(int velocityX) {
// When the overlay is moving, the fling or settle transition is controlled by the overlay.
return Float.compare(mOverlayTranslation, 0) == 0 &&
return Float.compare(Math.abs(mOverlayTranslation), 0) == 0 &&
super.shouldFlingForVelocity(velocityX);
}