always show "boosted" text in reply/boost line

closes sk22#874
This commit is contained in:
sk 2023-10-18 21:21:03 +02:00
parent 5135653cd3
commit 39f76f9988
2 changed files with 3 additions and 4 deletions

View File

@ -176,12 +176,11 @@ public abstract class StatusDisplayItem{
if(status.reblog!=null){
boolean isOwnPost = AccountSessionManager.getInstance().isSelf(fragment.getAccountID(), status.account);
String fullText = fragment.getString(R.string.user_boosted, status.account.displayName);
String text = replyLine != null ? status.account.displayName : fullText;
String text=fragment.getString(R.string.user_boosted, status.account.displayName);
items.add(new ReblogOrReplyLineStatusDisplayItem(parentID, fragment, text, status.account.emojis, R.drawable.ic_fluent_arrow_repeat_all_20sp_filled, isOwnPost ? status.visibility : null, i->{
args.putParcelable("profileAccount", Parcels.wrap(status.account));
Nav.go(fragment.getActivity(), ProfileFragment.class, args);
}, fullText, status));
}, null, status));
} else if (!(status.tags.isEmpty() ||
fragment instanceof HashtagTimelineFragment ||
fragment instanceof ListTimelineFragment

View File

@ -47,6 +47,6 @@
android:drawableTint="?colorM3OnSurface"
android:drawablePadding="6dp"
android:singleLine="true"
android:ellipsize="end"/>
android:ellipsize="middle"/>
</org.joinmastodon.android.ui.views.HeaderSubtitleLinearLayout>