feat(notifications/action): use string titles
This commit is contained in:
parent
e68160800d
commit
ea190c0597
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -262,5 +262,7 @@
|
|||
<string name="sk_follow_as">Follow from other account</string>
|
||||
<string name="sk_followed_as">Followed from %s</string>
|
||||
<string name="sk_settings_hide_fab">Auto-hide Compose button</string>
|
||||
<string name="sk_notification_action_favorite">Favorite</string>
|
||||
<string name="sk_notification_action_bookmark">Bookmark</string>
|
||||
<string name="sk_notification_action_boost">Boost</string>
|
||||
</resources>
|
Loading…
Reference in New Issue