diff options
Diffstat (limited to 'android/src')
-rw-r--r-- | android/src/org/rockbox/RockboxFramebuffer.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/android/src/org/rockbox/RockboxFramebuffer.java b/android/src/org/rockbox/RockboxFramebuffer.java index 20311a8790..0daeffe265 100644 --- a/android/src/org/rockbox/RockboxFramebuffer.java +++ b/android/src/org/rockbox/RockboxFramebuffer.java | |||
@@ -40,7 +40,6 @@ public class RockboxFramebuffer extends View | |||
40 | int lcd_height, ByteBuffer native_fb) | 40 | int lcd_height, ByteBuffer native_fb) |
41 | { | 41 | { |
42 | super(c); | 42 | super(c); |
43 | |||
44 | /* Needed so we can catch KeyEvents */ | 43 | /* Needed so we can catch KeyEvents */ |
45 | setFocusable(true); | 44 | setFocusable(true); |
46 | setFocusableInTouchMode(true); | 45 | setFocusableInTouchMode(true); |
@@ -48,6 +47,8 @@ public class RockboxFramebuffer extends View | |||
48 | btm = Bitmap.createBitmap(lcd_width, lcd_height, Bitmap.Config.RGB_565); | 47 | btm = Bitmap.createBitmap(lcd_width, lcd_height, Bitmap.Config.RGB_565); |
49 | native_buf = native_fb; | 48 | native_buf = native_fb; |
50 | requestFocus(); | 49 | requestFocus(); |
50 | /* the service needs to know the about us */ | ||
51 | ((RockboxService)c).set_fb(this); | ||
51 | } | 52 | } |
52 | 53 | ||
53 | public void onDraw(Canvas c) | 54 | public void onDraw(Canvas c) |