diff --git a/legacy/templates/android/template/src/org/haxe/lime/MainView.java b/legacy/templates/android/template/src/org/haxe/lime/MainView.java index 9fb080875..63a13a381 100644 --- a/legacy/templates/android/template/src/org/haxe/lime/MainView.java +++ b/legacy/templates/android/template/src/org/haxe/lime/MainView.java @@ -510,6 +510,13 @@ class MainView extends GLSurfaceView { } + try { + + Thread.sleep((Build.VERSION.SDK_INT < Build.VERSION_CODES.FROYO) ? 16 : 1); + + } catch (InterruptedException e) { + } + return true; } diff --git a/templates/android/template/src/org/libsdl/app/SDLActivity.java b/templates/android/template/src/org/libsdl/app/SDLActivity.java index 9d6425997..05c94ff75 100644 --- a/templates/android/template/src/org/libsdl/app/SDLActivity.java +++ b/templates/android/template/src/org/libsdl/app/SDLActivity.java @@ -1225,6 +1225,11 @@ class SDLSurface extends SurfaceView implements SurfaceHolder.Callback, } } + try { + Thread.sleep((Build.VERSION.SDK_INT < Build.VERSION_CODES.FROYO) ? 16 : 1); + } catch (InterruptedException e) { + } + return true; }