[android] - only invoke AndroidRendererFrontend::reduceMemoryUse with an active renderer

This commit is contained in:
tobrun
2019-05-09 13:18:48 +02:00
committed by Tobrun
parent 0f599ce804
commit 8675d11e5e

View File

@@ -573,7 +573,7 @@ final class NativeMapView implements NativeMap {
@Override
public void onLowMemory() {
if (checkState("onLowMemory")) {
if (checkState("onLowMemory") || !mapRenderer.hasSurface()) {
return;
}
nativeOnLowMemory();