use custom string for anonymous reply

This commit is contained in:
sk
2023-03-13 20:06:05 +01:00
parent 80d529d503
commit 4c85fd4387
2 changed files with 3 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ public abstract class StatusDisplayItem{
args.putParcelable("profileAccount", Parcels.wrap(status.account));
Nav.go(fragment.getActivity(), ProfileFragment.class, args);
}));
}else if(status.inReplyToAccountId!=null){
} if(status.inReplyToAccountId!=null){
if (knownAccounts.containsKey(status.inReplyToAccountId)) {
Account account = Objects.requireNonNull(knownAccounts.get(status.inReplyToAccountId));
items.add(new ReblogOrReplyLineStatusDisplayItem(parentID, fragment, fragment.getString(R.string.in_reply_to, account.displayName), account.emojis, R.drawable.ic_fluent_arrow_reply_20_filled, null, i -> {
@@ -123,7 +123,7 @@ public abstract class StatusDisplayItem{
Nav.go(fragment.getActivity(), ProfileFragment.class, args);
}));
} else {
items.add(new ReblogOrReplyLineStatusDisplayItem(parentID, fragment, fragment.getString(R.string.in_reply_to), List.of(), R.drawable.ic_fluent_arrow_reply_20_filled, null, null));
items.add(new ReblogOrReplyLineStatusDisplayItem(parentID, fragment, fragment.getString(R.string.sk_in_reply), List.of(), R.drawable.ic_fluent_arrow_reply_20_filled, null, null));
}
} else if (
!(status.tags.isEmpty() ||

View File

@@ -262,4 +262,5 @@
<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_in_reply">In reply</string>
</resources>