mirror of
https://github.com/astromaddie/lambda1-vr.git
synced 2026-10-19 01:00:14 +02:00
Implement clean shutdown
- increase version number to 1.6.1
This commit is contained in:
1 parent
ae567ebd9b
commit
cb3000f57f
6 files changed
+49
-15
No files matched your search
@@ -67,7 +67,11 @@ import static android.system.Os.setenv;
|
||||
private SurfaceView mView;
|
||||
private SurfaceHolder mSurfaceHolder;
|
||||
private long mNativeHandle;
|
||||
|
||||
|
||||
public void shutdown() {
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
@Override protected void onCreate( Bundle icicle )
|
||||
{
|
||||
Log.v( TAG, "----------------------------------------------------------------" );
|
||||
@@ -578,7 +582,7 @@ import static android.system.Os.setenv;
|
||||
Log.v( TAG, "GLES3JNIActivity::onStart()" );
|
||||
super.onStart();
|
||||
|
||||
GLES3JNILib.onStart( mNativeHandle );
|
||||
GLES3JNILib.onStart( mNativeHandle, this );
|
||||
}
|
||||
|
||||
@Override protected void onResume()
|
||||
|
||||
@@ -10,7 +10,7 @@ public class GLES3JNILib
|
||||
{
|
||||
// Activity lifecycle
|
||||
public static native long onCreate( Activity obj, String commandLineParams );
|
||||
public static native void onStart( long handle );
|
||||
public static native void onStart( long handle, Object obj );
|
||||
public static native void onResume( long handle );
|
||||
public static native void onPause( long handle );
|
||||
public static native void onStop( long handle );
|
||||
|
||||
Reference in new issue
Block a user