Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set %cs(Current Screen) to "Bookmark browser" when listing bookmarks …

…from the Context Menu

Currently when you select list bookmarks from the context menu %cs returns
"Context Menu" when in the bookmark browser screen.  This change makes %cs
return "Bookmark browser" when listing bookmarks from the context menu, the
same as when you list recent bookmarks.  This change will make it possible
to determin that you are on a bookmark browser screen when skinning using
an sbs file.

Change-Id: I7fb93525fbafb5d14bba2ae5df7a78df908d09ae
Reviewed-on: http://gerrit.rockbox.org/169
Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
  • Loading branch information...
commit bcfa783100529ffbd29c6f0a7a9275c27df5cf66 1 parent 59e5a32
Osborne Jacobs authored jdgordon committed
Showing with 7 additions and 2 deletions.
  1. +6 −2 apps/bookmark.c
  2. +1 −0  docs/CREDITS
View
8 apps/bookmark.c
@@ -125,6 +125,9 @@ bool bookmark_create_menu(void)
/* ----------------------------------------------------------------------- */
bool bookmark_load_menu(void)
{
+ bool ret = false;
+
+ push_current_activity(ACTIVITY_BOOKMARKSLIST);
if (is_bookmarkable_state())
{
char* name = playlist_get_name(NULL, global_temp_buffer,
@@ -135,12 +138,13 @@ bool bookmark_load_menu(void)
if (bookmark != NULL)
{
- return play_bookmark(bookmark);
+ ret = play_bookmark(bookmark);
}
}
}
- return false;
+ pop_current_activity();
+ return ret;
}
/* ----------------------------------------------------------------------- */
View
1  docs/CREDITS
@@ -620,6 +620,7 @@ Cástor Muñoz
Albert Barca
Fukuda Takafumi
Dimitar Dimitrov
+Osborne Jacobs
The libmad team
The wavpack team
Please sign in to comment.
Something went wrong with that request. Please try again.