development
Revision | 95ae335fd53daf85b206215423ddf7881b9cb4fd (tree) |
---|---|
Time | 2011-02-02 08:54:02 |
Author | David 'Digit' Turner <digit@andr...> |
Commiter | David 'Digit' Turner |
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
@@ -106,10 +106,7 @@ void android_app_pre_exec_cmd(struct android_app* android_app, int8_t cmd) { | ||
106 | 106 | |
107 | 107 | case APP_CMD_TERM_WINDOW: |
108 | 108 | LOGI("APP_CMD_TERM_WINDOW\n"); |
109 | - pthread_mutex_lock(&android_app->mutex); | |
110 | - android_app->window = NULL; | |
111 | 109 | pthread_cond_broadcast(&android_app->cond); |
112 | - pthread_mutex_unlock(&android_app->mutex); | |
113 | 110 | break; |
114 | 111 | |
115 | 112 | case APP_CMD_RESUME: |