[android] - throw IllegalStateException when setting an maximum fps while the mapRenderer isn't created yet

This commit is contained in:
tobrun
2019-01-10 12:59:02 +01:00
committed by Tobrun
parent 50f5bbcdab
commit cb0dee6aac

View File

@@ -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.");
}
}