mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-12 10:32:36 +00:00
parent
d8f8f45e40
commit
60b340ce89
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user