I dont know what i am doing with my life

This commit is contained in:
LucasGGamerM 2022-12-28 22:54:40 -03:00
parent 4f77370977
commit 014398e050
2 changed files with 5 additions and 17 deletions

View File

@ -302,14 +302,11 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
boolean smallStyle = getContext().getResources().getBoolean(R.bool.show_small_publish_button); boolean smallStyle = getContext().getResources().getBoolean(R.bool.show_small_publish_button);
if(GlobalUserPreferences.relocatePublishButton){ if(GlobalUserPreferences.relocatePublishButton){
if(smallStyle){
publishButton=view.findViewById(R.id.publishSmall);
// publishButton.
}else{
publishButton=view.findViewById(R.id.publish); publishButton=view.findViewById(R.id.publish);
publishButton.setText(editingStatus==null || redraftStatus ? R.string.publish : R.string.save); publishButton.setText(editingStatus==null || redraftStatus ? R.string.publish : R.string.save);
} publishButton.setEllipsize(TextUtils.TruncateAt.END);
publishButton.setOnClickListener(this::onPublishClick); publishButton.setOnClickListener(this::onPublishClick);
publishButton.setSingleLine(true);
publishButton.setVisibility(View.VISIBLE); publishButton.setVisibility(View.VISIBLE);
} }

View File

@ -316,22 +316,13 @@
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"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="8dp" android:layout_marginStart="8dp"
android:visibility="gone" android:visibility="gone"
android:autoSizeTextType="uniform"
/> />
</LinearLayout> </LinearLayout>