summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-10-31 10:35:42 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-10-31 10:35:42 +0000
commit26f7ee13ce024b21c83cf68ca7fd27306a0bf5be (patch)
treebca2317c1fee1ceff740a878ef1afae49fdf2217 /firmware/target/hosted
parent78b2711e58f8117f7d552585127a0675c00bb252 (diff)
downloadrockbox-26f7ee13ce024b21c83cf68ca7fd27306a0bf5be.tar.gz
rockbox-26f7ee13ce024b21c83cf68ca7fd27306a0bf5be.tar.bz2
rockbox-26f7ee13ce024b21c83cf68ca7fd27306a0bf5be.zip
Clean up usage of RockboxService. Add a proper way to check if rockbox is actually running (checking RockboxService.fb != null was very very bad)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28406 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/hosted')
-rw-r--r--firmware/target/hosted/android/lcd-android.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/firmware/target/hosted/android/lcd-android.c b/firmware/target/hosted/android/lcd-android.c
index fc9e22a921..75bf7a6d1d 100644
--- a/firmware/target/hosted/android/lcd-android.c
+++ b/firmware/target/hosted/android/lcd-android.c
@@ -78,11 +78,9 @@ void lcd_init_device(void)
"java_lcd_update_rect",
"(IIII)V");
- /* at last, give RockboxService the Framebuffer instance */
- jfieldID id = e->GetStaticFieldID(env_ptr, RockboxService_class,
- "fb", "Lorg/rockbox/RockboxFramebuffer;");
- e->SetStaticObjectField(env_ptr, RockboxService_class,
- id, RockboxFramebuffer_instance);
+ jmethodID fbsetter = e->GetMethodID(env_ptr,RockboxService_class,
+ "set_fb", "(Lorg/rockbox/RockboxFramebuffer;)V");
+ e->CallVoidMethod(env_ptr, RockboxService_instance, fbsetter, RockboxFramebuffer_instance);
display_on = true;
}