summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authortobrun <tobrun.van.nuland@gmail.com>2019-05-09 13:18:48 +0200
committerTobrun <tobrun.van.nuland@gmail.com>2019-05-10 14:29:12 +0200
commit8675d11e5e2a0be1aa17616f4aaabbfc169f6659 (patch)
treef596c9fb2cef1a5c41dcfbf7d708e55326ef04b9 /platform
parent0f599ce8048b3428ebff8f59c32f4908d44fabc9 (diff)
downloadqtlocation-mapboxgl-8675d11e5e2a0be1aa17616f4aaabbfc169f6659.tar.gz
[android] - only invoke AndroidRendererFrontend::reduceMemoryUse with an active renderer
Diffstat (limited to 'platform')
-rwxr-xr-xplatform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/NativeMapView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/NativeMapView.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/NativeMapView.java
index 8d75d3e76f..328b5f6bcb 100755
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/NativeMapView.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/NativeMapView.java
@@ -573,7 +573,7 @@ final class NativeMapView implements NativeMap {
@Override
public void onLowMemory() {
- if (checkState("onLowMemory")) {
+ if (checkState("onLowMemory") || !mapRenderer.hasSurface()) {
return;
}
nativeOnLowMemory();