mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-14 01:21:35 +01:00
Small refactoring, add setAutoCancel(true)
This commit is contained in:
parent
a66daa3d4f
commit
f92c861764
1 changed files with 2 additions and 0 deletions
|
@ -55,6 +55,7 @@ public class NotificationPublisher extends BroadcastReceiver {
|
||||||
.setChannelId(APP_NAME)
|
.setChannelId(APP_NAME)
|
||||||
.setStyle(new NotificationCompat.BigTextStyle()
|
.setStyle(new NotificationCompat.BigTextStyle()
|
||||||
.bigText(context.getString(R.string.pharmacy)))
|
.bigText(context.getString(R.string.pharmacy)))
|
||||||
|
.setAutoCancel(true)
|
||||||
.setPriority(NotificationCompat.PRIORITY_DEFAULT);
|
.setPriority(NotificationCompat.PRIORITY_DEFAULT);
|
||||||
|
|
||||||
if (isEnableSound) {
|
if (isEnableSound) {
|
||||||
|
@ -62,6 +63,7 @@ public class NotificationPublisher extends BroadcastReceiver {
|
||||||
builder.setSound(alarmSound);
|
builder.setSound(alarmSound);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
notificationManager.notify(notificationId, builder.build());
|
notificationManager.notify(notificationId, builder.build());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue