diff options
Diffstat (limited to 'apps/hosted/android')
-rw-r--r-- | apps/hosted/android/notification.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/hosted/android/notification.c b/apps/hosted/android/notification.c index 4bb8d0a528..874cd3bcef 100644 --- a/apps/hosted/android/notification.c +++ b/apps/hosted/android/notification.c | |||
@@ -46,7 +46,7 @@ static const struct dim dim = { .width = 200, .height = 200 }; | |||
46 | * notify about track change, and show track info */ | 46 | * notify about track change, and show track info */ |
47 | static void track_changed_callback(void *param) | 47 | static void track_changed_callback(void *param) |
48 | { | 48 | { |
49 | struct mp3entry* id3 = (struct mp3entry*)param; | 49 | struct mp3entry* id3 = ((struct track_event *)param)->id3; |
50 | JNIEnv e = *env_ptr; | 50 | JNIEnv e = *env_ptr; |
51 | if (id3) | 51 | if (id3) |
52 | { | 52 | { |
@@ -108,7 +108,9 @@ static void track_changed_callback(void *param) | |||
108 | * notify about track finishing */ | 108 | * notify about track finishing */ |
109 | static void track_finished_callback(void *param) | 109 | static void track_finished_callback(void *param) |
110 | { | 110 | { |
111 | (void)param; | 111 | if (((struct track_event *)param)->flags & TEF_REWIND) |
112 | return; /* Not a true track end */ | ||
113 | |||
112 | JNIEnv e = *env_ptr; | 114 | JNIEnv e = *env_ptr; |
113 | e->CallVoidMethod(env_ptr, NotificationManager_instance, | 115 | e->CallVoidMethod(env_ptr, NotificationManager_instance, |
114 | finishNotification); | 116 | finishNotification); |