From ea190c05976c3dd66fc58a49ff09a9ca05eebe52 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 5963aff85..91780ef43 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java +++ b/mastodon/src/main/java/org/joinmastodon/android/PushNotificationReceiver.java @@ -200,8 +200,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 28857dd63..305df8b06 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