Skip to content

Commit 173c651

Browse files
committed
don't call resume() before setup()
1 parent cab353f commit 173c651

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/src/processing/core/PApplet.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,12 @@ public void onResume() {
601601
handleMethods("resume");
602602

603603
surface.resumeThread();
604-
resume();
604+
if (0 < frameCount) {
605+
// Don't call resume() when the app is starting and setup() has not been
606+
// called yet
607+
// https://github.com/processing/processing-android/issues/274
608+
resume();
609+
}
605610
}
606611

607612

0 commit comments

Comments
 (0)