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/recorder/recording.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/recorder/recording.c') diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index b4f7d25cf8..34283b6cb5 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -1108,6 +1108,7 @@ bool recording_screen(bool no_source) struct audio_recording_options rec_options; rec_status = RCSTAT_IN_RECSCREEN; + push_current_activity(ACTIVITY_RECORDING); #if (CONFIG_STORAGE & STORAGE_ATA) && (CONFIG_LED == LED_REAL) \ && !defined(SIMULATOR) @@ -2089,7 +2090,7 @@ rec_abort: #endif settings_save(); - + pop_current_activity(); return (rec_status & RCSTAT_BEEN_IN_USB_MODE) != 0; } /* recording_screen */ -- cgit v1.2.3