summaryrefslogtreecommitdiffstats
path: root/apps/action.c
diff options
context:
space:
mode:
authorWieland Hoffmann <themineo@gmail.com>2011-09-20 19:33:04 +0200
committerJonathan Gordon <rockbox@jdgordon.info>2012-01-28 14:17:52 +0100
commit94177e6c3b026627a0a8321c053e26889b065d88 (patch)
treedd16311b480cb13c1b5dbb64b1112a4279bdef2f /apps/action.c
parent3019a803076ea98447b431cf9258117108c2c5ce (diff)
downloadrockbox-94177e6c3b026627a0a8321c053e26889b065d88.tar.gz
rockbox-94177e6c3b026627a0a8321c053e26889b065d88.zip
Use is_keys_locked when possible
Change-Id: Ib0ae0f31a8b040aba5dca4e11df934c89aaca232 Reviewed-on: http://gerrit.rockbox.org/73 Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
Diffstat (limited to 'apps/action.c')
-rw-r--r--apps/action.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/action.c b/apps/action.c
index 44980cdd9e..3747a7521e 100644
--- a/apps/action.c
+++ b/apps/action.c
@@ -265,7 +265,7 @@ static int get_action_worker(int context, int timeout,
last_context = context;
#ifndef HAS_BUTTON_HOLD
screen_has_lock = ((context & ALLOW_SOFTLOCK) == ALLOW_SOFTLOCK);
- if (screen_has_lock && keys_locked)
+ if (is_keys_locked())
{
if (button == unlock_combo)
{