Enable light notification for both modes

This commit is contained in:
tom79 2017-08-26 11:35:39 +02:00
parent 0b1e768223
commit fac7350c25
1 changed files with 1 additions and 2 deletions

View File

@ -604,12 +604,11 @@ public class Helper {
Could as angryTux suggested add some sort of option for user to choose the colour,
but not really sure that wouldn't just add another extra setting for no real reason.
*/
notificationBuilder.setLights(Color.BLUE, 500, 1000);
}else {
String soundUri = ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + context.getPackageName() +"/";
notificationBuilder.setSound(Uri.parse(soundUri + R.raw.boop));
}
notificationBuilder.setLights(Color.BLUE, 500, 1000);
notificationBuilder.setContentTitle(title);
notificationBuilder.setLargeIcon(icon);
notificationManager.notify(notificationId, notificationBuilder.build());