get last notification
This commit is contained in:
parent
1282e3ed9e
commit
b274647f68
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ public class AlarmSoundService extends Service {
|
||||||
}
|
}
|
||||||
|
|
||||||
public int onStartCommand(Intent intent, int flags, int startId) {
|
public int onStartCommand(Intent intent, int flags, int startId) {
|
||||||
Notification notification = PersistentNotificationPlugin.getPlugin().updateNotification();
|
Notification notification = PersistentNotificationPlugin.getPlugin().getLastNotification();
|
||||||
startForeground(PersistentNotificationPlugin.ONGOING_NOTIFICATION_ID, notification);
|
startForeground(PersistentNotificationPlugin.ONGOING_NOTIFICATION_ID, notification);
|
||||||
if (player != null && player.isPlaying())
|
if (player != null && player.isPlaying())
|
||||||
player.stop();
|
player.stop();
|
||||||
|
|
Loading…
Reference in a new issue