Merge "Slowing down gestures for virtual device" into ub-launcher3-qt-dev

This commit is contained in:
Vadim Tryshev
2019-04-30 00:59:45 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 2 deletions
@@ -28,7 +28,7 @@ import java.util.List;
* Common overview pane for both Launcher and fallback recents
*/
public class BaseOverview extends LauncherInstrumentation.VisibleContainer {
private static final int FLING_SPEED = 1500;
private static final int FLING_SPEED = LauncherInstrumentation.needSlowGestures() ? 500 : 1500;
private static final int FLINGS_FOR_DISMISS_LIMIT = 40;
BaseOverview(LauncherInstrumentation launcher) {
@@ -36,7 +36,8 @@ import com.android.launcher3.TestProtocol;
* Operations on the workspace screen.
*/
public final class Workspace extends Home {
private static final float FLING_SPEED = 3500.0F;
private static final float FLING_SPEED =
LauncherInstrumentation.needSlowGestures() ? 1500.0F : 3500.0F;
private static final int DRAG_DURACTION = 2000;
private final UiObject2 mHotseat;