summaryrefslogtreecommitdiff
path: root/apps/menu.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-01-29 01:01:12 +0000
committerThomas Martitz <kugel@rockbox.org>2011-01-29 01:01:12 +0000
commit89a4cf26933a1c82e4da8f4a382ed9b80f43956e (patch)
tree52957ee5ecc0351b556e818c9a67da440215ed31 /apps/menu.c
parent3f709eada2d67418971ec1c5d907a06ba9161200 (diff)
downloadrockbox-89a4cf26933a1c82e4da8f4a382ed9b80f43956e.tar.gz
rockbox-89a4cf26933a1c82e4da8f4a382ed9b80f43956e.zip
Change the way how playlists and system menu items in the main menu are internally invoked so that the mechanism to
pass the back button press to the android system (to let it go to the home screen) works for them. This fixes that the back button goes still to the home screen after entering these items. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29157 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menu.c')
-rw-r--r--apps/menu.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/menu.c b/apps/menu.c
index 5839a51c21..8ea2f0883e 100644
--- a/apps/menu.c
+++ b/apps/menu.c
@@ -327,7 +327,7 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected,
327 int selected = start_selected? *start_selected : 0; 327 int selected = start_selected? *start_selected : 0;
328 int action; 328 int action;
329 struct gui_synclist lists; 329 struct gui_synclist lists;
330 const struct menu_item_ex *temp, *menu; 330 const struct menu_item_ex *temp, *menu = start_menu;
331 int ret = 0, i; 331 int ret = 0, i;
332 bool redraw_lists; 332 bool redraw_lists;
333 int old_audio_status = audio_status(); 333 int old_audio_status = audio_status();
@@ -347,9 +347,6 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected,
347#endif 347#endif
348 348
349 menu_callback_type menu_callback = NULL; 349 menu_callback_type menu_callback = NULL;
350 if (start_menu == NULL)
351 menu = &main_menu_;
352 else menu = start_menu;
353 350
354 /* if hide_theme is true, assume parent has been fixed before passed into 351 /* if hide_theme is true, assume parent has been fixed before passed into
355 * this function, e.g. with viewport_set_defaults(parent, screen) */ 352 * this function, e.g. with viewport_set_defaults(parent, screen) */