summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Paczos <lukasz.paczos@mapbox.com>2019-01-04 15:55:07 +0100
committerŁukasz Paczos <lukasz.paczos@mapbox.com>2019-01-07 17:57:22 +0100
commitdc25a88f6b822096e4d41d622b738be365d63a55 (patch)
tree5d5cef7cec883a2bab12f8d9c3acbce0c1282df9
parent6bcd091dd832841fabec90667ec1a673c672fcba (diff)
downloadqtlocation-mapboxgl-dc25a88f6b822096e4d41d622b738be365d63a55.tar.gz
[android] fix location interval workaround initialization
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponent.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponent.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponent.java
index c6c026c4c4..1324993e5b 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponent.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponent.java
@@ -211,7 +211,7 @@ public final class LocationComponent {
* <strong>Note</strong>: This method will initialize and use an internal {@link LocationEngine} when enabled.
*
* @param context the context
- * @param style the proxy object for current map style. More info at {@link Style}
+ * @param style the proxy object for current map style. More info at {@link Style}
*/
@RequiresPermission(anyOf = {ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION})
public void activateLocationComponent(@NonNull Context context, @NonNull Style style) {
@@ -224,7 +224,7 @@ public final class LocationComponent {
* Afterwards, you can manage component's visibility by {@link #setLocationComponentEnabled(boolean)}.
*
* @param context the context
- * @param style the proxy object for current map style. More info at {@link Style}
+ * @param style the proxy object for current map style. More info at {@link Style}
* @param useDefaultLocationEngine true if you want to initialize and use the built-in location engine or false if
* there should be no location engine initialized
*/
@@ -243,7 +243,7 @@ public final class LocationComponent {
* Afterwards, you can manage component's visibility by {@link #setLocationComponentEnabled(boolean)}.
*
* @param context the context
- * @param style the proxy object for current map style. More info at {@link Style}
+ * @param style the proxy object for current map style. More info at {@link Style}
* @param useDefaultLocationEngine true if you want to initialize and use the built-in location engine or false if
* there should be no location engine initialized
* @param locationEngineRequest the location request
@@ -267,7 +267,7 @@ public final class LocationComponent {
* <strong>Note</strong>: This method will initialize and use an internal {@link LocationEngine} when enabled.
*
* @param context the context
- * @param style the proxy object for current map style. More info at {@link Style}
+ * @param style the proxy object for current map style. More info at {@link Style}
* @param styleRes the LocationComponent style res
*/
@RequiresPermission(anyOf = {ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION})
@@ -283,7 +283,7 @@ public final class LocationComponent {
* </p>
*
* @param context the context
- * @param style the proxy object for current map style. More info at {@link Style}
+ * @param style the proxy object for current map style. More info at {@link Style}
* @param options the options
*/
@RequiresPermission(anyOf = {ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION})
@@ -299,7 +299,7 @@ public final class LocationComponent {
* Afterwards, you can manage component's visibility by {@link #setLocationComponentEnabled(boolean)}.
*
* @param context the context
- * @param style the proxy object for current map style. More info at {@link Style}
+ * @param style the proxy object for current map style. More info at {@link Style}
* @param locationEngine the engine, or null if you'd like to only force location updates
* @param styleRes the LocationComponent style res
*/
@@ -315,7 +315,7 @@ public final class LocationComponent {
* Afterwards, you can manage component's visibility by {@link #setLocationComponentEnabled(boolean)}.
*
* @param context the context
- * @param style the proxy object for current map style. More info at {@link Style}
+ * @param style the proxy object for current map style. More info at {@link Style}
* @param locationEngine the engine, or null if you'd like to only force location updates
* @param locationEngineRequest the location request
* @param styleRes the LocationComponent style res
@@ -332,7 +332,7 @@ public final class LocationComponent {
* This method will show the location icon and enable the camera tracking the location.
*
* @param context the context
- * @param style the proxy object for current map style. More info at {@link Style}
+ * @param style the proxy object for current map style. More info at {@link Style}
* @param locationEngine the engine
*/
@RequiresPermission(anyOf = {ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION})
@@ -345,7 +345,7 @@ public final class LocationComponent {
* This method will show the location icon and enable the camera tracking the location.
*
* @param context the context
- * @param style the proxy object for current map style. More info at {@link Style}
+ * @param style the proxy object for current map style. More info at {@link Style}
* @param locationEngine the engine
* @param locationEngineRequest the location request
*/
@@ -361,7 +361,7 @@ public final class LocationComponent {
* Afterwards, you can manage component's visibility by {@link #setLocationComponentEnabled(boolean)}.
*
* @param locationEngine the engine, or null if you'd like to only force location updates
- * @param style the proxy object for current map style. More info at {@link Style}
+ * @param style the proxy object for current map style. More info at {@link Style}
* @param options the options
*/
@RequiresPermission(anyOf = {ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION})
@@ -378,7 +378,7 @@ public final class LocationComponent {
* Afterwards, you can manage component's visibility by {@link #setLocationComponentEnabled(boolean)}.
*
* @param context the context
- * @param style the proxy object for current map style. More info at {@link Style}
+ * @param style the proxy object for current map style. More info at {@link Style}
* @param locationEngine the engine, or null if you'd like to only force location updates
* @param locationEngineRequest the location request
* @param options the options
@@ -1023,7 +1023,7 @@ public final class LocationComponent {
if (this.locationEngine != null) {
this.locationEngine.removeLocationUpdates(currentLocationEngineListener);
}
- locationEngine = internalLocationEngineProvider.getBestLocationEngine(context, false);
+ setLocationEngine(internalLocationEngineProvider.getBestLocationEngine(context, false));
}
private void updateCompassListenerState(boolean canListen) {