1
0
Fork 0
forked from len0rd/rockbox

protect the yes/no screen from extra keypresses (which can happen if you display 2 yes/no screens too quickly)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31452 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2011-12-28 05:55:05 +00:00
parent fd150d05b4
commit 7949dd4dae

View file

@ -169,6 +169,9 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message,
screens[i].stop_scroll();
gui_yesno_draw(&(yn[i]));
}
/* make sure to eat any extranous keypresses */
while (get_action(CONTEXT_STD+99, TIMEOUT_NOBLOCK))
action_wait_for_release();
while (result==-1)
{
/* Repeat the question every 5secs (more or less) */