From 94177e6c3b026627a0a8321c053e26889b065d88 Mon Sep 17 00:00:00 2001 From: Wieland Hoffmann Date: Tue, 20 Sep 2011 19:33:04 +0200 Subject: Use is_keys_locked when possible Change-Id: Ib0ae0f31a8b040aba5dca4e11df934c89aaca232 Reviewed-on: http://gerrit.rockbox.org/73 Reviewed-by: Jonathan Gordon --- apps/action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/action.c') 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) { -- cgit v1.2.3