File tree 1 file changed +2
-3
lines changed 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -765,7 +765,6 @@ public void resume() {
765
765
public void onDestroy () {
766
766
super .onDestroy ();
767
767
dispose ();
768
- exit2 ();
769
768
if (PApplet .DEBUG ) {
770
769
System .out .println ("PApplet.onDestroy() called" );
771
770
}
@@ -3005,7 +3004,7 @@ protected void handleKeyEvent(KeyEvent event) {
3005
3004
3006
3005
3007
3006
public void onBackPressed () {
3008
- exit ();
3007
+ exit ();
3009
3008
}
3010
3009
3011
3010
@@ -3338,6 +3337,7 @@ void exit2() {
3338
3337
try {
3339
3338
if (activity != null ) {
3340
3339
activity .finishAffinity ();
3340
+ activity = null ;
3341
3341
}
3342
3342
// System.exit(0);
3343
3343
} catch (SecurityException e ) {
@@ -3368,7 +3368,6 @@ final public void dispose() {
3368
3368
// https://github.com/processing/processing-android/issues/213#issuecomment-217348480
3369
3369
surfaceView .getHolder ().getSurface ().release ();
3370
3370
surfaceView = null ;
3371
- // activity = null;
3372
3371
}
3373
3372
3374
3373
handleMethods ("dispose" );
You can’t perform that action at this time.
0 commit comments