summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-10-27 23:38:24 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-10-27 23:38:24 +0000
commita12eb3d89239c2933bd3679cffd7d82be305dd42 (patch)
treecaecb65ffbad65fc39dfffeca61f720d41dddc77 /apps
parentc41322c59182e4cb10de185f7c14a59a015ac994 (diff)
downloadrockbox-a12eb3d89239c2933bd3679cffd7d82be305dd42.zip
rockbox-a12eb3d89239c2933bd3679cffd7d82be305dd42.tar.gz
rockbox-a12eb3d89239c2933bd3679cffd7d82be305dd42.tar.bz2
rockbox-a12eb3d89239c2933bd3679cffd7d82be305dd42.tar.xz
The return code from wps_display() wasn't handled correctly. And keylock() didn't reset the locked icon when reaching the end of the playlist. This fixes bug #624938.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2753 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/wps.c32
1 files changed, 23 insertions, 9 deletions
diff --git a/apps/wps.c b/apps/wps.c
index f0ba54f..dd3649e 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -384,8 +384,7 @@ static bool ffwd_rew(int button)
status_set_playmode(STATUS_PLAY);
}
#ifdef HAVE_LCD_CHARCELLS
- if (wps_display(id3))
- return true;
+ wps_display(id3);
#endif
exit = true;
break;
@@ -453,8 +452,13 @@ static bool keylock(void)
display_keylock_text(true);
keys_locked = true;
wps_refresh(id3,0,true);
- if (wps_display(id3))
- return true;
+ if (wps_display(id3)) {
+ keys_locked = false;
+#ifdef HAVE_LCD_CHARCELLS
+ status_set_record(false);
+#endif
+ return false;
+ }
status_draw();
while (button_get(false)); /* clear button queue */
@@ -482,7 +486,13 @@ static bool keylock(void)
return true;
case BUTTON_NONE:
- update();
+ if(update()) {
+ keys_locked = false;
+#ifdef HAVE_LCD_CHARCELLS
+ status_set_record(false);
+#endif
+ exit = true;
+ }
break;
#ifdef HAVE_RECORDER_KEYPAD
@@ -500,8 +510,13 @@ static bool keylock(void)
display_keylock_text(true);
while (button_get(false)); /* clear button queue */
wps_refresh(id3,0,true);
- if(wps_display(id3))
- return true;
+ if (wps_display(id3)) {
+ keys_locked = false;
+#ifdef HAVE_LCD_CHARCELLS
+ status_set_record(false);
+#endif
+ exit = true;
+ }
break;
}
}
@@ -610,8 +625,7 @@ static bool menu(void)
status_set_param(false);
#endif
- if (wps_display(id3))
- return true;
+ wps_display(id3);
wps_refresh(id3,0,true);
return false;
}