Its a lot less broken than before

This commit is contained in:
LucasGGamerM
2022-12-28 22:26:49 -03:00
parent 5937215d3a
commit 4f77370977
2 changed files with 19 additions and 2 deletions

View File

@@ -299,9 +299,16 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
sensitiveItem=view.findViewById(R.id.sensitive_item);
replyText=view.findViewById(R.id.reply_text);
boolean smallStyle = getContext().getResources().getBoolean(R.bool.show_small_publish_button);
if(GlobalUserPreferences.relocatePublishButton){
publishButton=view.findViewById(R.id.publish);
publishButton.setText(editingStatus==null || redraftStatus ? R.string.publish : R.string.save);
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.setOnClickListener(this::onPublishClick);
publishButton.setVisibility(View.VISIBLE);
}