Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2019-03-31 17:34:01 +02:00
parent d8f8f45e40
commit 60b340ce89
2 changed files with 5 additions and 2 deletions

View File

@ -266,6 +266,9 @@ public class NotificationWorker extends Worker {
CRC32 crc32 = new CRC32();
String baseUrl =
signatureVerification.getUserEntity().getBaseUrl().substring(signatureVerification.getUserEntity().getBaseUrl().indexOf("://") + 3);
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context, "1")
.setLargeIcon(largeIcon)
.setSmallIcon(smallIcon)
@ -273,7 +276,7 @@ public class NotificationWorker extends Worker {
.setPriority(priority)
.setWhen(Calendar.getInstance().getTimeInMillis())
.setShowWhen(true)
.setSubText(signatureVerification.getUserEntity().getDisplayName())
.setSubText(baseUrl)
.setContentTitle(decryptedPushMessage.getSubject())
.setContentIntent(pendingIntent)
.setAutoCancel(true);

View File

@ -59,7 +59,7 @@ public class NotificationUtils {
channel.setDescription(channelDescription);
channel.enableLights(enableLights);
channel.setLightColor(Color.RED);
channel.setLightColor(R.color.colorPrimary);
channel.setSound(null, null);
notificationManager.createNotificationChannel(channel);