SDL-mirror/android-project
Ryan C. Gordon db1d484721 android: fix wrong events when locking device in landscape (thanks, Joshua!).
"Using an application in portrait orientation, turning off the device would
dispatch SDL_APP_WILLENTERBACKGROUND, then SDL_APP_DIDENTERBACKGROUND then
lock the screen.

However, rotating the application the application to landscape, then turning
off the device would incorrectly dispatch SDL_APP_WILLENTERBACKGROUND,
SDL_APP_WILLENTERBACKGROUND, SDL_APP_WILLENTERFOREGROUND and then
SDL_APP_DIDENTERFOREGROUND before locking the screen. You can imagine how
this created trouble :)

It appears this occurs because (on this application) turning off a device
when in landscape is triggering a resize. The resize logic in SDLActivity
triggers a resume.

This patch has resolved the issue on my device:

It prevents the dispatch of (improper) FOREGROUND events when locking
the device, but we get still events when the device is turned back on
and unlocked."
2017-03-31 23:43:53 -04:00
..
jni Fixed bug 2758 - Android issues with NDK r10c and API-21 2016-10-14 06:57:55 -07:00
res Fixed bug 1779 - SDL's Android project template has old default icons from Android. 2013-04-02 07:55:25 -07:00
src/org/libsdl/app android: fix wrong events when locking device in landscape (thanks, Joshua!). 2017-03-31 23:43:53 -04:00
AndroidManifest.xml android: implement audio capture support. 2016-08-11 22:04:49 -04:00
ant.properties Updated the Android project template and README.android 2012-11-02 02:37:49 -07:00
build.properties Added the Android project and lots of info to README.android 2011-01-06 17:12:31 -08:00
build.xml Updated the Android project template and README.android 2012-11-02 02:37:49 -07:00
default.properties Adds Joystick support for Android 2013-11-05 20:07:39 -03:00
proguard-project.txt Updated the Android project template and README.android 2012-11-02 02:37:49 -07:00
project.properties Adds Joystick support for Android 2013-11-05 20:07:39 -03:00