From b58d3656d79e5f9752a22d55c139294412084e4f Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 1 Jun 2011 14:41:49 +0000 Subject: FS#11925 - Add a proper system to keep track of the current screen/activity to make %cs far more useful git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29944 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/option_select.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/gui/option_select.c') diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c index f954268c18..7f829d26c3 100644 --- a/apps/gui/option_select.c +++ b/apps/gui/option_select.c @@ -486,6 +486,7 @@ bool option_screen(const struct settings_list *setting, temp_var = oldvalue = *(bool*)setting->setting?1:0; } else return false; /* only int/bools can go here */ + push_current_activity(ACTIVITY_OPTIONSELECT); gui_synclist_init(&lists, value_setting_get_name_cb, (void*)setting, false, 1, parent); if (setting->lang_id == -1) @@ -566,6 +567,7 @@ bool option_screen(const struct settings_list *setting, if (function == sound_get_fn(SOUND_VOLUME)) global_status.last_volume_change = current_tick; } + pop_current_activity(); return false; } -- cgit v1.2.3