summaryrefslogtreecommitdiffstats
path: root/android/src
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-10-24 13:34:28 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-10-24 13:34:28 +0000
commit783421ddd731d0ecdc51d23a7992f389542ad419 (patch)
treeabacbcd01df4f2c1ee67d8c76e63c6a8ed7a1d1c /android/src
parent55e498979903641c7ae4057760a2657a097dd87d (diff)
downloadrockbox-783421ddd731d0ecdc51d23a7992f389542ad419.tar.gz
rockbox-783421ddd731d0ecdc51d23a7992f389542ad419.tar.bz2
rockbox-783421ddd731d0ecdc51d23a7992f389542ad419.zip
Make sure the view always has focus and can be focused in touch mode so the front buttons work after a touch
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28348 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'android/src')
-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);
}