diff options
author | Łukasz Paczos <lukas.paczos@gmail.com> | 2018-12-05 15:32:06 +0100 |
---|---|---|
committer | Tobrun <tobrun@mapbox.com> | 2018-12-10 16:59:50 +0100 |
commit | f8f8e0b7494a07467f177cd7ec8d8094af61c665 (patch) | |
tree | 61c9c1a2abb9d16e0fc5dffe53908a72ca620f3a /platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/utils/MapboxTestingUtils.kt | |
parent | acbe2475f91127cda76ff0857d36ab3c29e58257 (diff) | |
download | qtlocation-mapboxgl-f8f8e0b7494a07467f177cd7ec8d8094af61c665.tar.gz |
[android] move style callback invocation to MapboxMap
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/utils/MapboxTestingUtils.kt')
-rw-r--r-- | platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/utils/MapboxTestingUtils.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/utils/MapboxTestingUtils.kt b/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/utils/MapboxTestingUtils.kt index 429f4e7ab1..0a9aa48503 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/utils/MapboxTestingUtils.kt +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/utils/MapboxTestingUtils.kt @@ -41,7 +41,7 @@ fun MapboxMap.waitForLayer(uiController: UiController, location: Location, layer var counter = 0 val delay = MapboxTestingUtils.MAP_RENDER_DELAY while ( - if (shouldDisappear) this.queryRenderedFeatures(location, layerId).isNotEmpty() else this.queryRenderedFeatures(location, layerId).isEmpty() + if (shouldDisappear) this.queryRenderedFeatures(location, layerId).isNotEmpty() else (this.style == null || this.queryRenderedFeatures(location, layerId).isEmpty()) && delay * counter < MapboxTestingUtils.RENDER_TIMEOUT) { uiController.loopMainThreadForAtLeast(delay) counter++ |