Added markdown indicator

pull/214/head
M66B 10 months ago
parent 692dc36128
commit 4a2f9f2f1b

@ -256,6 +256,7 @@ public class FragmentCompose extends FragmentBase {
private TextView tvResend;
private TextView tvPlainTextOnly;
private EditTextCompose etBody;
private ImageView ivMarkdown;
private TextView tvNoInternet;
private TextView tvSignature;
private CheckBox cbSignature;
@ -414,6 +415,7 @@ public class FragmentCompose extends FragmentBase {
tvResend = view.findViewById(R.id.tvResend);
tvPlainTextOnly = view.findViewById(R.id.tvPlainTextOnly);
etBody = view.findViewById(R.id.etBody);
ivMarkdown = view.findViewById(R.id.ivMarkdown);
tvNoInternet = view.findViewById(R.id.tvNoInternet);
tvSignature = view.findViewById(R.id.tvSignature);
cbSignature = view.findViewById(R.id.cbSignature);
@ -1102,6 +1104,7 @@ public class FragmentCompose extends FragmentBase {
tvPlainTextOnly.setVisibility(View.GONE);
etBody.setText(null);
etBody.setHint(null);
ivMarkdown.setVisibility(View.GONE);
grpHeader.setVisibility(View.GONE);
grpExtra.setVisibility(View.GONE);
@ -7777,6 +7780,7 @@ public class FragmentCompose extends FragmentBase {
etBody.setHint(hint);
grpBody.setVisibility(View.VISIBLE);
ivMarkdown.setVisibility(markdown ? View.VISIBLE : View.GONE);
cbSignature.setChecked(draft.signature);
tvSignature.setAlpha(draft.signature ? 1.0f : Helper.LOW_LIGHT);

@ -348,6 +348,17 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvPlainTextOnly" />
<ImageView
android:id="@+id/ivMarkdown"
android:layout_width="36dp"
android:layout_height="wrap_content"
android:contentDescription="@string/title_markdown"
android:tooltipText="@string/title_markdown"
app:layout_constraintBottom_toBottomOf="@id/etBody"
app:layout_constraintEnd_toEndOf="@id/etBody"
app:srcCompat="@drawable/twotone_data_array_24"
app:tint="?attr/colorSeparator" />
<TextView
android:id="@+id/tvNoInternet"
android:layout_width="wrap_content"

Loading…
Cancel
Save