limit size of messages in notifications

This commit is contained in:
tom79 2019-08-31 18:22:51 +02:00
parent d288637a6a
commit 4651ac152d
1 changed files with 3 additions and 0 deletions

View File

@ -1135,6 +1135,9 @@ public class Helper {
.setWhen(System.currentTimeMillis())
.setAutoCancel(true);
if (notifType == MENTION) {
if(message.length() > 500){
message = message.substring(0, 499)+"";
}
notificationBuilder.setStyle(new NotificationCompat.BigTextStyle().bigText(message));
}
notificationBuilder.setGroup(account.getAcct()+"@"+account.getInstance())