diff --git a/apps/hosted/android/yesno.c b/apps/hosted/android/yesno.c index f08e7b2dfb..105f4af688 100644 --- a/apps/hosted/android/yesno.c +++ b/apps/hosted/android/yesno.c @@ -118,3 +118,16 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message, } #endif + +/* Function to manipulate all yesno dialogues. + This function needs the output text as an argument. */ +bool yesno_pop(const char* text) +{ + int i; + const char *lines[]={text}; + const struct text_message message={lines, 1}; + bool ret = (gui_syncyesno_run(&message,NULL,NULL)== YESNO_YES); + FOR_NB_SCREENS(i) + screens[i].clear_viewport(); + return ret; +}