From 4f7737097760e352098971843d76c1f0013ba3c6 Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Wed, 28 Dec 2022 22:26:49 -0300 Subject: [PATCH] Its a lot less broken than before --- .../android/fragments/ComposeFragment.java | 11 +++++++++-- mastodon/src/main/res/layout/fragment_compose.xml | 10 ++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) 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 915dde92b..29cc86c89 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java @@ -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); } diff --git a/mastodon/src/main/res/layout/fragment_compose.xml b/mastodon/src/main/res/layout/fragment_compose.xml index 931340a0b..a049700fe 100644 --- a/mastodon/src/main/res/layout/fragment_compose.xml +++ b/mastodon/src/main/res/layout/fragment_compose.xml @@ -316,6 +316,16 @@ android:textColor="?android:textColorSecondary" tools:text="500"/> +