diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java index 29cc86c89..e168b4dd2 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java @@ -302,14 +302,11 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr boolean smallStyle = getContext().getResources().getBoolean(R.bool.show_small_publish_button); if(GlobalUserPreferences.relocatePublishButton){ - if(smallStyle){ - publishButton=view.findViewById(R.id.publishSmall); -// publishButton. - }else{ - publishButton=view.findViewById(R.id.publish); - publishButton.setText(editingStatus==null || redraftStatus ? R.string.publish : R.string.save); - } + publishButton=view.findViewById(R.id.publish); + publishButton.setText(editingStatus==null || redraftStatus ? R.string.publish : R.string.save); + publishButton.setEllipsize(TextUtils.TruncateAt.END); publishButton.setOnClickListener(this::onPublishClick); + publishButton.setSingleLine(true); publishButton.setVisibility(View.VISIBLE); } diff --git a/mastodon/src/main/res/layout/fragment_compose.xml b/mastodon/src/main/res/layout/fragment_compose.xml index a049700fe..cf606aa1f 100644 --- a/mastodon/src/main/res/layout/fragment_compose.xml +++ b/mastodon/src/main/res/layout/fragment_compose.xml @@ -316,22 +316,13 @@ android:textColor="?android:textColorSecondary" tools:text="500"/> -