mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
parent
d8f8f45e40
commit
60b340ce89
@ -266,6 +266,9 @@ public class NotificationWorker extends Worker {
|
|||||||
|
|
||||||
CRC32 crc32 = new CRC32();
|
CRC32 crc32 = new CRC32();
|
||||||
|
|
||||||
|
String baseUrl =
|
||||||
|
signatureVerification.getUserEntity().getBaseUrl().substring(signatureVerification.getUserEntity().getBaseUrl().indexOf("://") + 3);
|
||||||
|
|
||||||
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context, "1")
|
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context, "1")
|
||||||
.setLargeIcon(largeIcon)
|
.setLargeIcon(largeIcon)
|
||||||
.setSmallIcon(smallIcon)
|
.setSmallIcon(smallIcon)
|
||||||
@ -273,7 +276,7 @@ public class NotificationWorker extends Worker {
|
|||||||
.setPriority(priority)
|
.setPriority(priority)
|
||||||
.setWhen(Calendar.getInstance().getTimeInMillis())
|
.setWhen(Calendar.getInstance().getTimeInMillis())
|
||||||
.setShowWhen(true)
|
.setShowWhen(true)
|
||||||
.setSubText(signatureVerification.getUserEntity().getDisplayName())
|
.setSubText(baseUrl)
|
||||||
.setContentTitle(decryptedPushMessage.getSubject())
|
.setContentTitle(decryptedPushMessage.getSubject())
|
||||||
.setContentIntent(pendingIntent)
|
.setContentIntent(pendingIntent)
|
||||||
.setAutoCancel(true);
|
.setAutoCancel(true);
|
||||||
|
@ -59,7 +59,7 @@ public class NotificationUtils {
|
|||||||
|
|
||||||
channel.setDescription(channelDescription);
|
channel.setDescription(channelDescription);
|
||||||
channel.enableLights(enableLights);
|
channel.enableLights(enableLights);
|
||||||
channel.setLightColor(Color.RED);
|
channel.setLightColor(R.color.colorPrimary);
|
||||||
channel.setSound(null, null);
|
channel.setSound(null, null);
|
||||||
|
|
||||||
notificationManager.createNotificationChannel(channel);
|
notificationManager.createNotificationChannel(channel);
|
||||||
|
Loading…
Reference in New Issue
Block a user