summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-05-25 08:44:49 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-05-25 08:44:49 +0000
commitcc9079d24d6dd73f2118a1b413fbaa3f13ed44a1 (patch)
treef753b5decf66632374408d7d33b60a4b5866340a /firmware
parentcaf907eef137dea6e29468d3311ce8197217900f (diff)
downloadrockbox-cc9079d24d6dd73f2118a1b413fbaa3f13ed44a1.tar.gz
rockbox-cc9079d24d6dd73f2118a1b413fbaa3f13ed44a1.tar.bz2
rockbox-cc9079d24d6dd73f2118a1b413fbaa3f13ed44a1.zip
Fix a problem where hardware keypresses dont reset the idle poweroff timer on android
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29924 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/hosted/android/button-android.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/target/hosted/android/button-android.c b/firmware/target/hosted/android/button-android.c
index ed1e125223..051a5b574e 100644
--- a/firmware/target/hosted/android/button-android.c
+++ b/firmware/target/hosted/android/button-android.c
@@ -77,6 +77,7 @@ Java_org_rockbox_RockboxFramebuffer_buttonHandler(JNIEnv*env, jclass class,
button = dpad_to_button((int)keycode);
if (button)
{
+ reset_poweroff_timer();
queue_post(&button_queue, button, 0);
return true;
}