From a86560a800707963b01f35a237be783acb685f18 Mon Sep 17 00:00:00 2001 From: Evgenii Kozlov Date: Fri, 31 Jan 2025 14:57:32 +0100 Subject: [PATCH] DROID-3293 Notifications | Fix | The notification that space was deleted should have title (#2050) --- .../main/java/com/anytypeio/anytype/app/Notifications.kt | 6 +++++- localization/src/main/res/values/strings.xml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/anytypeio/anytype/app/Notifications.kt b/app/src/main/java/com/anytypeio/anytype/app/Notifications.kt index 33e3b80c51..0b4735a503 100644 --- a/app/src/main/java/com/anytypeio/anytype/app/Notifications.kt +++ b/app/src/main/java/com/anytypeio/anytype/app/Notifications.kt @@ -86,9 +86,13 @@ class AnytypeNotificationService @Inject constructor( val body = context.resources.getString( R.string.multiplayer_notification_member_removed_from_space ) + val title = context.resources.getString( + R.string.multiplayer_notification_member_removed_from_space_title + ) showBasicNotification( tag = notification.id, - body = body + body = body, + title = title ) } is NotificationPayload.ParticipantRequestApproved -> { diff --git a/localization/src/main/res/values/strings.xml b/localization/src/main/res/values/strings.xml index de8377237c..8905926cd5 100644 --- a/localization/src/main/res/values/strings.xml +++ b/localization/src/main/res/values/strings.xml @@ -1407,6 +1407,7 @@ Request approved Your request to join the %1$s space has been approved with read-only access rights. The space will be available on your device soon. Your request to join the %1$s space has been approved with edit access rights. The space will be available on your device soon. + The space is no longer accessible. You have been removed from the space, or the space was deleted by the owner. Permissions changed Your access rights were changed to read-only in the %1$s space.