summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/testapp/utils/GestureUtils.java
blob: 7f42031f9d59384b683bd94d59301384af18fa92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.mapbox.mapboxsdk.testapp.utils;

import androidx.annotation.IdRes;

import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.action.ViewActions.doubleClick;
import static androidx.test.espresso.matcher.ViewMatchers.withId;

public class GestureUtils {

  public static void doubleClickGesture(@IdRes int id) {
    onView(withId(id)).perform(doubleClick());
  }

}