Permalink
Browse files

don't call resume() before setup()

  • Loading branch information...
1 parent cab353f commit 173c65133583f23f30dafe4b99463b2b74390777 @codeanticode codeanticode committed Jan 10, 2017
Showing with 6 additions and 1 deletion.
  1. +6 −1 core/src/processing/core/PApplet.java
@@ -601,7 +601,12 @@ public void onResume() {
handleMethods("resume");
surface.resumeThread();
- resume();
+ if (0 < frameCount) {
+ // Don't call resume() when the app is starting and setup() has not been
+ // called yet
+ // https://github.com/processing/processing-android/issues/274
+ resume();
+ }
}

0 comments on commit 173c651

Please sign in to comment.