From 94177e6c3b026627a0a8321c053e26889b065d88 Mon Sep 17 00:00:00 2001 From: Wieland Hoffmann Date: Tue, 20 Sep 2011 19:33:04 +0200 Subject: [PATCH] Use is_keys_locked when possible Change-Id: Ib0ae0f31a8b040aba5dca4e11df934c89aaca232 Reviewed-on: http://gerrit.rockbox.org/73 Reviewed-by: Jonathan Gordon --- apps/action.c | 2 +- docs/CREDITS | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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) { diff --git a/docs/CREDITS b/docs/CREDITS index 72fc0347af..da0340e612 100644 --- a/docs/CREDITS +++ b/docs/CREDITS @@ -613,6 +613,7 @@ Jean-Louis Biasini Lorenzo Miori James Hunt Artur Juraszek +Wieland Hoffmann The libmad team The wavpack team