From 348054712d6e53685c89912c15a9e304c917165c Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Tue, 27 May 2025 05:46:19 +0200 Subject: [PATCH] fix red f3d127f372 Change-Id: I62e7f16c49d8e6f7f8645e1f27ee4fa0cfecee66 --- apps/hosted/android/yesno.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/hosted/android/yesno.c b/apps/hosted/android/yesno.c index 417cbb0fcc..5fc99ae571 100644 --- a/apps/hosted/android/yesno.c +++ b/apps/hosted/android/yesno.c @@ -28,6 +28,7 @@ #include "settings.h" #include "lang.h" #include "kernel.h" +#include "splash.h" extern JNIEnv *env_ptr; static jobject RockboxYesno_instance = NULL; @@ -99,7 +100,7 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message, (void)yes_message; (void)no_message; yesno_init(); - + JNIEnv e = *env_ptr; jstring message = build_message(main_message); jstring yes = (*env_ptr)->NewStringUTF(env_ptr, str(LANG_SET_BOOL_YES)); @@ -107,7 +108,7 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message, e->CallVoidMethod(env_ptr, RockboxYesno_instance, yesno_func, message, yes, no); - + semaphore_wait(&yesno_done, TIMEOUT_BLOCK); e->DeleteLocalRef(env_ptr, message);