Merge "Slowing down gestures for virtual device" into ub-launcher3-qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b93786dca3
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user