diff options
Diffstat (limited to 'apps/root_menu.c')
-rw-r--r-- | apps/root_menu.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c index 5a8d40f0b6..a65ceb51b9 100644 --- a/apps/root_menu.c +++ b/apps/root_menu.c @@ -639,7 +639,15 @@ void root_menu(void) case GO_TO_ROOT: if (last_screen != GO_TO_ROOT) selected = get_selection(last_screen); +#if (CONFIG_PLATFORM&PLATFORM_ANDROID) + /* When we are in the main menu we want the hardware BACK + * button to be handled by Android instead of rockbox */ + android_ignore_back_button(true); +#endif next_screen = do_menu(&root_menu_, &selected, NULL, false); +#if (CONFIG_PLATFORM&PLATFORM_ANDROID) + android_ignore_back_button(false); +#endif if (next_screen != GO_TO_PREVIOUS) last_screen = GO_TO_ROOT; break; |