[android] - throw IllegalStateException when setting an maximum fps while the mapRenderer isn't created yet
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user