summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortobrun <tobrun.van.nuland@gmail.com>2019-01-10 12:59:02 +0100
committerTobrun <tobrun@mapbox.com>2019-01-10 13:55:33 +0100
commitcb0dee6aacb2ac76ab4f6e936273e598c756e57f (patch)
tree57dd545c1c696d10c095a925e506071364500e37
parent50f5bbcdab9009f5e68f865a4fcf77874c0434ff (diff)
downloadqtlocation-mapboxgl-cb0dee6aacb2ac76ab4f6e936273e598c756e57f.tar.gz
[android] - throw IllegalStateException when setting an maximum fps while the mapRenderer isn't created yet
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
index 0f70524653..896d67483d 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
@@ -430,6 +430,8 @@ public class MapView extends FrameLayout implements NativeMapView.ViewCallback {
public void setMaximumFps(int maximumFps) {
if (mapRenderer != null) {
mapRenderer.setMaximumFps(maximumFps);
+ } else {
+ throw new IllegalStateException("Calling MapView#setMaximumFps before mapRenderer is created.");
}
}