From 165f0fd4fecaba275b42779adcbf96fd50a08379 Mon Sep 17 00:00:00 2001 From: Mis012 Date: Wed, 2 Nov 2022 16:27:20 +0100 Subject: [PATCH] src/api-impl/android/opengl/GLSurfaceView.java: add onResume stub --- src/api-impl/android/opengl/GLSurfaceView.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api-impl/android/opengl/GLSurfaceView.java b/src/api-impl/android/opengl/GLSurfaceView.java index d478d5a6..28b49fd0 100644 --- a/src/api-impl/android/opengl/GLSurfaceView.java +++ b/src/api-impl/android/opengl/GLSurfaceView.java @@ -41,6 +41,10 @@ public class GLSurfaceView extends View { // TODO: have this extend SurfaceView private native void native_constructor(AttributeSet attrs); private native void native_constructor(Context context); + // Resumes the rendering thread, re-creating the OpenGL context if necessary. It is the counterpart to onPause(). This method should typically be called in Activity.onStart. Must not be called before a renderer has been set. + // TODO: make use of this + public void onResume() {} + public boolean onTouchEvent (MotionEvent event) { return true; }