diff --git a/src/android/jar/src/org/qtproject/qt5/android/QtSurface.java b/src/android/jar/src/org/qtproject/qt5/android/QtSurface.java index 6968c82f72..1454c30638 100644 --- a/src/android/jar/src/org/qtproject/qt5/android/QtSurface.java +++ b/src/android/jar/src/org/qtproject/qt5/android/QtSurface.java @@ -67,7 +67,9 @@ public class QtSurface extends SurfaceView implements SurfaceHolder.Callback setZOrderMediaOverlay(onTop); getHolder().addCallback(this); getHolder().setFormat(PixelFormat.RGBA_8888); - getHolder().setType(SurfaceHolder.SURFACE_TYPE_GPU); + if (android.os.Build.VERSION.SDK_INT < 11) + getHolder().setType(SurfaceHolder.SURFACE_TYPE_GPU); + setId(id); m_gestureDetector = new GestureDetector(context, new GestureDetector.SimpleOnGestureListener() {