I dont know what i am doing with my life
This commit is contained in:
parent
4f77370977
commit
014398e050
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -316,22 +316,13 @@
|
|||
android:textColor="?android:textColorSecondary"
|
||||
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
|
||||
android:id="@+id/publish"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:visibility="gone"
|
||||
android:autoSizeTextType="uniform"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
|
Loading…
Reference in New Issue