src/api-impl/android/opengl/GLSurfaceView.java: add onResume stub

This commit is contained in:
Mis012
2022-11-02 16:27:20 +01:00
parent c7fcb0f84e
commit 165f0fd4fe

View File

@@ -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;
}