summaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
Diffstat (limited to 'android')
-rw-r--r--android/src/org/rockbox/RockboxFramebuffer.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/android/src/org/rockbox/RockboxFramebuffer.java b/android/src/org/rockbox/RockboxFramebuffer.java
index ddc4a4d5d6..070ef5cbc9 100644
--- a/android/src/org/rockbox/RockboxFramebuffer.java
+++ b/android/src/org/rockbox/RockboxFramebuffer.java
@@ -43,6 +43,8 @@ public class RockboxFramebuffer extends View
/* Needed so we can catch KeyEvents */
setFocusable(true);
+ setFocusableInTouchMode(true);
+ setClickable(true);
requestFocus();
}
@@ -113,7 +115,13 @@ public class RockboxFramebuffer extends View
set_lcd_active(0);
}
public void resume()
- { /* make updates again, the underlying function will
+ {
+ /* Needed so we can catch KeyEvents */
+ setFocusable(true);
+ setFocusableInTouchMode(true);
+ setClickable(true);
+ requestFocus();
+ /* make updates again, the underlying function will
* send an event */
set_lcd_active(1);
}