Its a lot less broken than before
This commit is contained in:
@@ -299,9 +299,16 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
|
|||||||
sensitiveItem=view.findViewById(R.id.sensitive_item);
|
sensitiveItem=view.findViewById(R.id.sensitive_item);
|
||||||
replyText=view.findViewById(R.id.reply_text);
|
replyText=view.findViewById(R.id.reply_text);
|
||||||
|
|
||||||
|
boolean smallStyle = getContext().getResources().getBoolean(R.bool.show_small_publish_button);
|
||||||
|
|
||||||
if(GlobalUserPreferences.relocatePublishButton){
|
if(GlobalUserPreferences.relocatePublishButton){
|
||||||
publishButton=view.findViewById(R.id.publish);
|
if(smallStyle){
|
||||||
publishButton.setText(editingStatus==null || redraftStatus ? R.string.publish : R.string.save);
|
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.setOnClickListener(this::onPublishClick);
|
||||||
publishButton.setVisibility(View.VISIBLE);
|
publishButton.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -316,6 +316,16 @@
|
|||||||
android:textColor="?android:textColorSecondary"
|
android:textColor="?android:textColorSecondary"
|
||||||
tools:text="500"/>
|
tools:text="500"/>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
android:id="@+id/publishSmall"
|
||||||
|
android:layout_width="48dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="8dp"
|
||||||
|
android:drawableLeft="@drawable/ic_fluent_send_24_regular"
|
||||||
|
android:visibility="gone"
|
||||||
|
/>
|
||||||
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/publish"
|
android:id="@+id/publish"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|||||||
Reference in New Issue
Block a user