Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
always show "boosted" text in reply/boost line
Browse files Browse the repository at this point in the history
closes #874
  • Loading branch information
sk22 committed Oct 18, 2023
1 parent 5135653 commit 39f76f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,11 @@ public static ArrayList<StatusDisplayItem> buildItems(BaseStatusListFragment<?>

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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 39f76f9

Please sign in to comment.