1
0
Fork 0
forked from len0rd/rockbox

android: Fix crash on start up.

Change-Id: I0343de9347d100182c2ffd28058ac61f15097cc3
This commit is contained in:
Thomas Martitz 2012-03-30 11:21:31 +02:00
parent 3414c952b9
commit 4e8893b874

View file

@ -124,7 +124,7 @@ void notification_init(void)
{ {
JNIEnv e = *env_ptr; JNIEnv e = *env_ptr;
jfieldID nNM = e->GetFieldID(env_ptr, RockboxService_class, jfieldID nNM = e->GetFieldID(env_ptr, RockboxService_class,
"fg_runner", "Lorg/rockbox/Helper/RunForegroundManager;"); "mFgRunner", "Lorg/rockbox/Helper/RunForegroundManager;");
NotificationManager_instance = e->GetObjectField(env_ptr, NotificationManager_instance = e->GetObjectField(env_ptr,
RockboxService_instance, nNM); RockboxService_instance, nNM);
if (NotificationManager_instance == NULL) if (NotificationManager_instance == NULL)