use default priority notifications. disables heads up notifications
This commit is contained in:
parent
b86dd584dc
commit
f414998307
|
@ -240,7 +240,7 @@ public class NotificationService {
|
||||||
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||||
mBuilder.setCategory(Notification.CATEGORY_MESSAGE);
|
mBuilder.setCategory(Notification.CATEGORY_MESSAGE);
|
||||||
}
|
}
|
||||||
mBuilder.setPriority(notify ? NotificationCompat.PRIORITY_HIGH : NotificationCompat.PRIORITY_LOW);
|
mBuilder.setPriority(notify ? NotificationCompat.PRIORITY_DEFAULT : NotificationCompat.PRIORITY_LOW);
|
||||||
setNotificationColor(mBuilder);
|
setNotificationColor(mBuilder);
|
||||||
mBuilder.setDefaults(0);
|
mBuilder.setDefaults(0);
|
||||||
if (led) {
|
if (led) {
|
||||||
|
|
Loading…
Reference in New Issue