summaryrefslogtreecommitdiffstats
path: root/apps/root_menu.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-07-11 02:22:03 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-07-11 02:22:03 +0000
commit411f3e2b2bb8ad93e9402bd90aba1894ecf25076 (patch)
treeab7426f6180753cb3afbb00fe73ac60de4f6d4a1 /apps/root_menu.c
parentb9f22af85a04cc89913090a9d145ead055f38b43 (diff)
downloadrockbox-411f3e2b2bb8ad93e9402bd90aba1894ecf25076.tar.gz
rockbox-411f3e2b2bb8ad93e9402bd90aba1894ecf25076.tar.bz2
rockbox-411f3e2b2bb8ad93e9402bd90aba1894ecf25076.zip
If the action handler for the menu returns ACTION_REDRAW the list will be redrawn. Fixes the Now Playing/Resume Playback text not updating
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13848 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/root_menu.c')
-rw-r--r--apps/root_menu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index 1451a60a16..e99cb4aa88 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -342,7 +342,7 @@ MENUITEM_FUNCTION(do_shutdown_item, 0, ID2P(LANG_SHUTDOWN),
do_shutdown, NULL, NULL, Icon_NOICON);
#endif
MAKE_MENU(root_menu_, ID2P(LANG_ROCKBOX_TITLE),
- NULL, Icon_Rockbox,
+ item_callback, Icon_Rockbox,
&bookmarks, &file_browser,
#ifdef HAVE_TAGCACHE
&db_browser,
@@ -365,6 +365,8 @@ int item_callback(int action, const struct menu_item_ex *this_item)
{
switch (action)
{
+ case ACTION_TREE_STOP:
+ return ACTION_REDRAW;
case ACTION_REQUEST_MENUITEM:
#if CONFIG_TUNER
if (this_item == &fm)