diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-02-23 01:10:54 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-02-23 01:10:54 +0000 |
commit | 95e24dd7a54256e8df56e347c0f43133087a1df2 (patch) | |
tree | 677d66d4e72fedfe134bca103ed98b5792da1440 /android/src/org/rockbox/RockboxFramebuffer.java | |
parent | da3417706d927c7da0b59351fa8cc010d63d7928 (diff) |
Android:
* Re-create RockboxFramebuffer instance with every time there's a new Activity.
* Also, allow Rockbox to be started via multimedia buttons, immediately starting playback if wanted.
We don't need to keep the fb instance around when it backround, and it makes us less depending on it and the activity (less race conditions). And this is how you usually do it in Android apps.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29384 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'android/src/org/rockbox/RockboxFramebuffer.java')
-rw-r--r-- | android/src/org/rockbox/RockboxFramebuffer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/src/org/rockbox/RockboxFramebuffer.java b/android/src/org/rockbox/RockboxFramebuffer.java index 037fd2db85..a17bc90ab6 100644 --- a/android/src/org/rockbox/RockboxFramebuffer.java +++ b/android/src/org/rockbox/RockboxFramebuffer.java @@ -148,7 +148,7 @@ public class RockboxFramebuffer extends SurfaceView } private native void touchHandler(boolean down, int x, int y); - private native static boolean buttonHandler(int keycode, boolean state); + public native static boolean buttonHandler(int keycode, boolean state); public native void surfaceCreated(SurfaceHolder holder); public native void surfaceDestroyed(SurfaceHolder holder); |