diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2011-08-04 13:40:24 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2011-08-04 13:40:24 +0000 |
| commit | 32dfc0cdc19eca850aab4fd994b32f8a1528e4c6 (patch) | |
| tree | 0778f103286564c4f905e88f87ccc19babdeb560 /apps | |
| parent | 44ffa3ef93db8a4f5c56dfcb49ec7cb1e4c613f8 (diff) | |
| download | rockbox-32dfc0cdc19eca850aab4fd994b32f8a1528e4c6.zip rockbox-32dfc0cdc19eca850aab4fd994b32f8a1528e4c6.tar.gz rockbox-32dfc0cdc19eca850aab4fd994b32f8a1528e4c6.tar.bz2 rockbox-32dfc0cdc19eca850aab4fd994b32f8a1528e4c6.tar.xz | |
Add a plugin activity which to the %cs screen option list
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30253 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/misc.h | 3 | ||||
| -rw-r--r-- | apps/plugin.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/apps/misc.h b/apps/misc.h index 1e151f0..05d8316 100644 --- a/apps/misc.h +++ b/apps/misc.h @@ -114,7 +114,8 @@ enum current_activity { ACTIVITY_QUICKSCREEN, ACTIVITY_PITCHSCREEN, ACTIVITY_OPTIONSELECT, - ACTIVITY_PLAYLISTBROWSER + ACTIVITY_PLAYLISTBROWSER, + ACTIVITY_PLUGIN }; #if CONFIG_CODEC == SWCODEC diff --git a/apps/plugin.c b/apps/plugin.c index c12a996..50fbb37 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -864,6 +864,7 @@ int plugin_load(const char* plugin, const void* parameter) lcd_remote_clear_display(); lcd_remote_update(); #endif + push_current_activity(ACTIVITY_PLUGIN); FOR_NB_SCREENS(i) viewportmanager_theme_enable(i, false, NULL); @@ -877,6 +878,8 @@ int plugin_load(const char* plugin, const void* parameter) #endif rc = p_hdr->entry_point(parameter); + + pop_current_activity(); if (!pfn_tsr_exit) { /* close handle if plugin is no tsr one */ |