From 22332e8c0a463ae228c21a626e232887af9d5b79 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Thu, 21 Jul 2011 06:51:55 +0000 Subject: Copy yesno_pop to hosted/yesno,c which is mildly annoying, maybe do a better fix later git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30185 a1c6a512-1295-4272-9138-f99709370657 --- apps/hosted/android/yesno.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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; +} -- cgit v1.2.3