Slowing down gestures for virtual device

Change-Id: I636bd3c053295041d0ae4e5c97f2790f5a1e40dd
This commit is contained in:
vadimt 2019-04-29 17:12:17 -07:00
parent 67b6541d7e
commit dc5b2fbdbe
2 changed files with 3 additions and 2 deletions

View File

@ -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) {

View File

@ -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;