From e918b7b9734ff3e45c19b6d1f7183dc176dfb205 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Fri, 5 Aug 2011 00:47:11 +0000 Subject: Add a %cs item for the context menus git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30258 a1c6a512-1295-4272-9138-f99709370657 --- apps/misc.h | 3 ++- apps/onplay.c | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/misc.h b/apps/misc.h index 05d8316..1fbff9e 100644 --- a/apps/misc.h +++ b/apps/misc.h @@ -115,7 +115,8 @@ enum current_activity { ACTIVITY_PITCHSCREEN, ACTIVITY_OPTIONSELECT, ACTIVITY_PLAYLISTBROWSER, - ACTIVITY_PLUGIN + ACTIVITY_PLUGIN, + ACTIVITY_CONTEXTMENU }; #if CONFIG_CODEC == SWCODEC diff --git a/apps/onplay.c b/apps/onplay.c index da06f93..03981c6 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -1347,12 +1347,15 @@ int onplay(char* file, int attr, int from, bool hotkey) #else (void)hotkey; #endif + + push_current_activity(ACTIVITY_CONTEXTMENU); if (context == CONTEXT_WPS) menu = &wps_onplay_menu; else menu = &tree_onplay_menu; menu_selection = do_menu(menu, NULL, NULL, false); - + pop_current_activity(); + switch (menu_selection) { case GO_TO_WPS: -- cgit v1.1