1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00

Added a workaround for Android GL glitches when pausing the app

This commit is contained in:
jules 2016-04-26 12:15:31 +01:00
parent 676b27ef68
commit 6fc08dd1cd
7 changed files with 74 additions and 60 deletions

View file

@ -220,6 +220,13 @@ public class JuceAppActivity extends Activity
protected void onPause()
{
suspendApp();
try
{
Thread.sleep (1000); // This is a bit of a hack to avoid some hard-to-track-down
// openGL glitches when pausing/resuming apps..
} catch (InterruptedException e) {}
super.onPause();
}