Add import

This commit is contained in:
jacques 2020-09-11 11:32:06 +02:00
parent 6dcdcd3ae7
commit ad889b8a94

View file

@ -10,6 +10,7 @@ import android.net.Uri;
import android.util.Log;
import androidx.core.app.NotificationCompat;
import androidx.core.app.NotificationManagerCompat;
/**
* Created by jfoucry on 6/23/16.
@ -61,11 +62,9 @@ public class NotificationPublisher extends BroadcastReceiver {
builder.setSound(alarmSound);
}
NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this);
// notificationId is a unique int for each notification that you must define
notificationManager.notify(notificationId, builder.build());
NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context);
// notificationId is a unique int for each notification that you must define
notificationManager.notify(notificationId, builder.build());
}