fix NPE in AndroidHarness when quitting (thanks iwgEric)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9241 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 13 years ago
parent 511a11fc7c
commit 1a771236cf
  1. 6
      engine/src/android/com/jme3/app/AndroidHarness.java

@ -230,6 +230,7 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt
view.onResume();
}
if (app != null) {
//resume the audio
AudioRenderer result = app.getAudioRenderer();
if (result != null) {
@ -238,6 +239,7 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt
renderer.resumeAll();
}
}
}
isGLThreadPaused = false;
logger.info("onResume");
@ -250,6 +252,7 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt
view.onPause();
}
if (app != null) {
//pause the audio
AudioRenderer result = app.getAudioRenderer();
if (result != null) {
@ -259,9 +262,10 @@ public class AndroidHarness extends Activity implements TouchListener, DialogInt
renderer.pauseAll();
}
}
}
isGLThreadPaused = true;
logger.info("onPause");
}
@Override

Loading…
Cancel
Save