• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

development


Commit MetaInfo

Revision95ae335fd53daf85b206215423ddf7881b9cb4fd (tree)
Time2011-02-02 08:54:02
AuthorDavid 'Digit' Turner <digit@andr...>
CommiterDavid 'Digit' Turner

Log Message

native_app_glue: fix APP_CMD_TERM_WINDOW pre-hook

The window field must not be set to NULL in the pre-hook, only the
post-one. See http://code.google.com/p/android/issues/detail?id=14352

Change-Id: Ib6214d47c97766bf4a5e148b6b6707e08366fe36

Change Summary

Incremental Difference

--- a/ndk/sources/android/native_app_glue/android_native_app_glue.c
+++ b/ndk/sources/android/native_app_glue/android_native_app_glue.c
@@ -106,10 +106,7 @@ void android_app_pre_exec_cmd(struct android_app* android_app, int8_t cmd) {
106106
107107 case APP_CMD_TERM_WINDOW:
108108 LOGI("APP_CMD_TERM_WINDOW\n");
109- pthread_mutex_lock(&android_app->mutex);
110- android_app->window = NULL;
111109 pthread_cond_broadcast(&android_app->cond);
112- pthread_mutex_unlock(&android_app->mutex);
113110 break;
114111
115112 case APP_CMD_RESUME: