diff options
Diffstat (limited to 'apps/hosted')
-rw-r--r-- | apps/hosted/android/yesno.c | 13 |
1 files changed, 13 insertions, 0 deletions
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, | |||
118 | } | 118 | } |
119 | 119 | ||
120 | #endif | 120 | #endif |
121 | |||
122 | /* Function to manipulate all yesno dialogues. | ||
123 | This function needs the output text as an argument. */ | ||
124 | bool yesno_pop(const char* text) | ||
125 | { | ||
126 | int i; | ||
127 | const char *lines[]={text}; | ||
128 | const struct text_message message={lines, 1}; | ||
129 | bool ret = (gui_syncyesno_run(&message,NULL,NULL)== YESNO_YES); | ||
130 | FOR_NB_SCREENS(i) | ||
131 | screens[i].clear_viewport(); | ||
132 | return ret; | ||
133 | } | ||