This commit is contained in:
Milos Kozak 2016-07-07 18:17:43 +02:00
parent 690fd06c01
commit 3895c1c4df

View file

@ -95,11 +95,11 @@ public class DanaRService extends Service {
.setLocalOnly(true); .setLocalOnly(true);
mNotification = mNotificationCompatBuilder.build(); mNotification = mNotificationCompatBuilder.build();
nortifManagerNotify(); notifyManagerNotify();
startForeground(notifyId, mNotification); startForeground(notifyId, mNotification);
} }
private void nortifManagerNotify() { private void notifyManagerNotify() {
mNotificationManager = (NotificationManager) getApplicationContext().getSystemService(Context.NOTIFICATION_SERVICE); mNotificationManager = (NotificationManager) getApplicationContext().getSystemService(Context.NOTIFICATION_SERVICE);
mNotificationManager.notify(notifyId, mNotification); mNotificationManager.notify(notifyId, mNotification);
} }
@ -122,7 +122,7 @@ public class DanaRService extends Service {
.setContentText(connectionText); .setContentText(connectionText);
mNotification = mNotificationCompatBuilder.build(); mNotification = mNotificationCompatBuilder.build();
nortifManagerNotify(); notifyManagerNotify();
} }
} }