From 49ae3cb76c1836df700fdbf1adb629b6c671b8a2 Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Fri, 4 Jun 2021 10:46:07 +0200 Subject: [PATCH] update some notification strings --- Habitica/res/values/strings.xml | 11 +++++++---- .../ReceivedPrivateMessageLocalNotification.kt | 2 ++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Habitica/res/values/strings.xml b/Habitica/res/values/strings.xml index 679c57eb7..1c13eb09f 100644 --- a/Habitica/res/values/strings.xml +++ b/Habitica/res/values/strings.xml @@ -717,8 +717,10 @@ Read More Show Less Reset Streak - How are your tasks going? - Breaks are healthy, but you can still earn points for simple activities to level up and get cool gear! + Getting things done? + Check them off in Habitica now for rewards and XP! + Need a change of routine? + Sometimes starting fresh is the best option, Habitica can help! Latest Check In Total Checkins Two-Handed @@ -850,8 +852,9 @@ Share Challenge with App Theme You sent a %s - You received %1$d messages from %2$s - You received %d messages + New Message from %1$s + %1$d New Messages from %2$s + %d new messages Remove Transfer Leadership Remove Member diff --git a/Habitica/src/main/java/com/habitrpg/android/habitica/helpers/notifications/ReceivedPrivateMessageLocalNotification.kt b/Habitica/src/main/java/com/habitrpg/android/habitica/helpers/notifications/ReceivedPrivateMessageLocalNotification.kt index a606dce0f..ff71f583e 100644 --- a/Habitica/src/main/java/com/habitrpg/android/habitica/helpers/notifications/ReceivedPrivateMessageLocalNotification.kt +++ b/Habitica/src/main/java/com/habitrpg/android/habitica/helpers/notifications/ReceivedPrivateMessageLocalNotification.kt @@ -39,6 +39,8 @@ class ReceivedPrivateMessageLocalNotification(context: Context, identifier: Stri .setContentTitle(notificationTitle) .setStyle(style) title = null + } else { + notification = notification.setContentTitle(context.getString(R.string.inbox_messages_title_single, data["senderName"])) } return notification }