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:
parent
55e4989799
commit
783421ddd7
1 changed files with 9 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue