From 55d2ca4a9346198367e7e37a4ffde4c5b67b96cc Mon Sep 17 00:00:00 2001
From: FineFindus <63370021+FineFindus@users.noreply.github.com>
Date: Sun, 26 Feb 2023 15:23:38 +0100
Subject: [PATCH] feat(notifications/action): use string titles
---
.../org/joinmastodon/android/PushNotificationReceiver.java | 4 ++--
mastodon/src/main/res/values/strings_sk.xml | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java b/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java
index c7108d5a5..4daa24f23 100644
--- a/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java
+++ b/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java
@@ -201,8 +201,8 @@ public class PushNotificationReceiver extends BroadcastReceiver{
switch (pn.notificationType) {
case MENTION -> {
- builder.addAction(buildNotificationAction(context, accountID, notification, "Favourite", NotificationAction.FAVORITE));
- builder.addAction(buildNotificationAction(context, accountID, notification, "Bookmark", NotificationAction.BOOKMARK));
+ builder.addAction(buildNotificationAction(context, accountID, notification, context.getString(R.string.sk_notification_action_favorite), NotificationAction.FAVORITE));
+ builder.addAction(buildNotificationAction(context, accountID, notification, context.getString(R.string.sk_notification_action_bookmark), NotificationAction.BOOKMARK));
if (notification != null && notification.status.visibility != StatusPrivacy.DIRECT)
builder.addAction(buildNotificationAction(context, accountID, notification, context.getString(R.string.sk_notification_action_boost), NotificationAction.REBLOG));
}
diff --git a/mastodon/src/main/res/values/strings_sk.xml b/mastodon/src/main/res/values/strings_sk.xml
index 5e0d9cad4..4f011a022 100644
--- a/mastodon/src/main/res/values/strings_sk.xml
+++ b/mastodon/src/main/res/values/strings_sk.xml
@@ -262,5 +262,7 @@
Follow from other account
Followed from %s
Auto-hide Compose button
+ Favorite
+ Bookmark
Boost
\ No newline at end of file