summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-01-16 00:25:40 +0100
committerThomas Martitz <kugel@rockbox.org>2014-01-16 00:25:40 +0100
commit98591a2815d878af8dbbd47ef7143c16654a8bba (patch)
tree08a16585f4f535481e34c0f3777aaaa79b5e6853 /apps
parenta969e1f4561397e67cc0f3e5869f67aea213c13b (diff)
downloadrockbox-98591a2815d878af8dbbd47ef7143c16654a8bba.tar.gz
rockbox-98591a2815d878af8dbbd47ef7143c16654a8bba.tar.bz2
rockbox-98591a2815d878af8dbbd47ef7143c16654a8bba.zip
menus: Stop scrolling before entering the USB screen or remnants of the previous list could appear on it.
Change-Id: I2753c239ef787e0a6af64c3d9c5bdeb26326a9d0
Diffstat (limited to 'apps')
-rw-r--r--apps/menu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/menu.c b/apps/menu.c
index 7ab7b56152..fc35da643f 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -670,6 +670,9 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected,
}
else
{
+ if (action == SYS_USB_CONNECTED)
+ gui_synclist_scroll_stop(&lists);
+
switch(default_event_handler(action))
{
case SYS_USB_CONNECTED:
@@ -692,6 +695,7 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected,
gui_synclist_speak_item(&lists);
}
}
+
if (start_selected)
{
/* make sure the start_selected variable is set to