We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fa6299 commit 8eaccf1Copy full SHA for 8eaccf1
core/src/processing/core/PApplet.java
@@ -3335,7 +3335,8 @@ public void exit() {
3335
3336
void exit2() {
3337
try {
3338
- System.exit(0);
+ activity.finish();
3339
+// System.exit(0);
3340
} catch (SecurityException e) {
3341
// don't care about applet security exceptions
3342
}
@@ -3364,11 +3365,11 @@ final public void dispose() {
3364
3365
// https://github.com/processing/processing-android/issues/213#issuecomment-217348480
3366
surfaceView.getHolder().getSurface().release();
3367
surfaceView = null;
-
3368
+
3369
// In API level 21 you can do
3370
// activity.releaseInstance();
3371
// to ask the app to free up its memory.
3372
3373
activity = null;
3374
3375
0 commit comments