summaryrefslogtreecommitdiff
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
parent55e498979903641c7ae4057760a2657a097dd87d (diff)
downloadrockbox-783421ddd731d0ecdc51d23a7992f389542ad419.tar.gz
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
-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
43 43
44 /* Needed so we can catch KeyEvents */ 44 /* Needed so we can catch KeyEvents */
45 setFocusable(true); 45 setFocusable(true);
46 setFocusableInTouchMode(true);
47 setClickable(true);
46 requestFocus(); 48 requestFocus();
47 } 49 }
48 50
@@ -113,7 +115,13 @@ public class RockboxFramebuffer extends View
113 set_lcd_active(0); 115 set_lcd_active(0);
114 } 116 }
115 public void resume() 117 public void resume()
116 { /* make updates again, the underlying function will 118 {
119 /* Needed so we can catch KeyEvents */
120 setFocusable(true);
121 setFocusableInTouchMode(true);
122 setClickable(true);
123 requestFocus();
124 /* make updates again, the underlying function will
117 * send an event */ 125 * send an event */
118 set_lcd_active(1); 126 set_lcd_active(1);
119 } 127 }