mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
fix red f3d127f372
Change-Id: I62e7f16c49d8e6f7f8645e1f27ee4fa0cfecee66
This commit is contained in:
parent
f3d127f372
commit
348054712d
1 changed files with 3 additions and 2 deletions
|
@ -28,6 +28,7 @@
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include "lang.h"
|
#include "lang.h"
|
||||||
#include "kernel.h"
|
#include "kernel.h"
|
||||||
|
#include "splash.h"
|
||||||
|
|
||||||
extern JNIEnv *env_ptr;
|
extern JNIEnv *env_ptr;
|
||||||
static jobject RockboxYesno_instance = NULL;
|
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)yes_message;
|
||||||
(void)no_message;
|
(void)no_message;
|
||||||
yesno_init();
|
yesno_init();
|
||||||
|
|
||||||
JNIEnv e = *env_ptr;
|
JNIEnv e = *env_ptr;
|
||||||
jstring message = build_message(main_message);
|
jstring message = build_message(main_message);
|
||||||
jstring yes = (*env_ptr)->NewStringUTF(env_ptr, str(LANG_SET_BOOL_YES));
|
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,
|
e->CallVoidMethod(env_ptr, RockboxYesno_instance, yesno_func,
|
||||||
message, yes, no);
|
message, yes, no);
|
||||||
|
|
||||||
semaphore_wait(&yesno_done, TIMEOUT_BLOCK);
|
semaphore_wait(&yesno_done, TIMEOUT_BLOCK);
|
||||||
|
|
||||||
e->DeleteLocalRef(env_ptr, message);
|
e->DeleteLocalRef(env_ptr, message);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue