Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Support Genymotion #10841

Merged
merged 1 commit into from
Jan 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.mapbox.mapboxsdk.maps.renderer.egl;

import android.opengl.GLSurfaceView;
import android.os.Build;
import android.support.annotation.NonNull;

import java.util.ArrayList;
Expand Down Expand Up @@ -261,9 +262,8 @@ private int getConfigAttr(EGL10 egl, EGLDisplay display, EGLConfig config, int a
return attributevalue[0];
}


private int[] getConfigAttributes() {
boolean emulator = inEmulator();
boolean emulator = inEmulator() || inGenymotion();
Timber.i("In emulator: %s", emulator);

// Get all configs at least RGB 565 with 16 depth and 8 stencil
Expand All @@ -290,4 +290,12 @@ private int[] getConfigAttributes() {
private boolean inEmulator() {
return System.getProperty("ro.kernel.qemu") != null;
}

/**
* Detect if we are in genymotion
*/
private boolean inGenymotion() {
return Build.MANUFACTURER.contains("Genymotion");
}

}