Split long line
This commit is contained in:
parent
31029e90cc
commit
a2fb6d5664
|
@ -465,10 +465,12 @@ class NotificationDrawerManager @Inject constructor(private val context: Context
|
||||||
val invitationsStr = stringProvider.getQuantityString(R.plurals.notification_invitations, numberOfInvitations, numberOfInvitations)
|
val invitationsStr = stringProvider.getQuantityString(R.plurals.notification_invitations, numberOfInvitations, numberOfInvitations)
|
||||||
if (simpleNotificationMessageCounter > 0) {
|
if (simpleNotificationMessageCounter > 0) {
|
||||||
// Invitation and message
|
// Invitation and message
|
||||||
val messageStr = stringProvider.getQuantityString(R.plurals.room_new_messages_notification, simpleNotificationMessageCounter, simpleNotificationMessageCounter)
|
val messageStr = stringProvider.getQuantityString(R.plurals.room_new_messages_notification,
|
||||||
|
simpleNotificationMessageCounter, simpleNotificationMessageCounter)
|
||||||
if (simpleNotificationRoomCounter > 1) {
|
if (simpleNotificationRoomCounter > 1) {
|
||||||
// In several rooms
|
// In several rooms
|
||||||
val roomStr = stringProvider.getQuantityString(R.plurals.notification_unread_notified_messages_in_room_rooms, simpleNotificationRoomCounter, simpleNotificationRoomCounter)
|
val roomStr = stringProvider.getQuantityString(R.plurals.notification_unread_notified_messages_in_room_rooms,
|
||||||
|
simpleNotificationRoomCounter, simpleNotificationRoomCounter)
|
||||||
stringProvider.getString(
|
stringProvider.getString(
|
||||||
R.string.notification_unread_notified_messages_in_room_and_invitation,
|
R.string.notification_unread_notified_messages_in_room_and_invitation,
|
||||||
messageStr,
|
messageStr,
|
||||||
|
@ -489,10 +491,12 @@ class NotificationDrawerManager @Inject constructor(private val context: Context
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// No invitation, only messages
|
// No invitation, only messages
|
||||||
val messageStr = stringProvider.getQuantityString(R.plurals.room_new_messages_notification, simpleNotificationMessageCounter, simpleNotificationMessageCounter)
|
val messageStr = stringProvider.getQuantityString(R.plurals.room_new_messages_notification,
|
||||||
|
simpleNotificationMessageCounter, simpleNotificationMessageCounter)
|
||||||
if (simpleNotificationRoomCounter > 1) {
|
if (simpleNotificationRoomCounter > 1) {
|
||||||
// In several rooms
|
// In several rooms
|
||||||
val roomStr = stringProvider.getQuantityString(R.plurals.notification_unread_notified_messages_in_room_rooms, simpleNotificationRoomCounter, simpleNotificationRoomCounter)
|
val roomStr = stringProvider.getQuantityString(R.plurals.notification_unread_notified_messages_in_room_rooms,
|
||||||
|
simpleNotificationRoomCounter, simpleNotificationRoomCounter)
|
||||||
stringProvider.getString(R.string.notification_unread_notified_messages_in_room, messageStr, roomStr)
|
stringProvider.getString(R.string.notification_unread_notified_messages_in_room, messageStr, roomStr)
|
||||||
} else {
|
} else {
|
||||||
// In one room
|
// In one room
|
||||||
|
|
Loading…
Reference in New Issue