mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
Add import
This commit is contained in:
parent
6dcdcd3ae7
commit
ad889b8a94
1 changed files with 3 additions and 4 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue