1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jonathan Gordon 2010-10-24 13:34:28 +00:00
parent 55e4989799
commit 783421ddd7

View file

@ -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);
}