mirror of https://github.com/M66B/FairEmail.git
Small behavior improvement
This commit is contained in:
parent
8a2355b71c
commit
32b6ce064b
|
@ -960,14 +960,14 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
|
|
||||||
vSeparatorBody.setVisibility(View.VISIBLE);
|
vSeparatorBody.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
ibFull.setVisibility(hasWebView ? View.INVISIBLE : View.GONE);
|
ibFull.setVisibility(View.GONE);
|
||||||
ibImages.setVisibility(View.INVISIBLE);
|
ibImages.setVisibility(View.GONE);
|
||||||
|
|
||||||
ibReply.setVisibility(View.INVISIBLE);
|
ibReply.setVisibility(View.GONE);
|
||||||
ibArchive.setVisibility(View.INVISIBLE);
|
ibArchive.setVisibility(View.GONE);
|
||||||
ibMove.setVisibility(View.INVISIBLE);
|
ibMove.setVisibility(View.GONE);
|
||||||
ibDelete.setVisibility(View.INVISIBLE);
|
ibDelete.setVisibility(View.GONE);
|
||||||
ibMove.setVisibility(View.INVISIBLE);
|
ibMove.setVisibility(View.GONE);
|
||||||
|
|
||||||
if (textSize != 0)
|
if (textSize != 0)
|
||||||
tvBody.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
|
tvBody.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
|
||||||
|
@ -1215,11 +1215,13 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
cbInline.setOnCheckedChangeListener(null);
|
cbInline.setOnCheckedChangeListener(null);
|
||||||
cbInline.setChecked(show_inline);
|
cbInline.setChecked(show_inline);
|
||||||
cbInline.setVisibility(has_inline ? View.VISIBLE : View.GONE);
|
cbInline.setVisibility(has_inline ? View.VISIBLE : View.GONE);
|
||||||
ibDecrypt.setVisibility(is_encrypted ? View.VISIBLE : View.GONE);
|
|
||||||
btnDownloadAttachments.setVisibility(download && suitable ? View.VISIBLE : View.GONE);
|
btnDownloadAttachments.setVisibility(download && suitable ? View.VISIBLE : View.GONE);
|
||||||
btnSaveAttachments.setVisibility(save ? View.VISIBLE : View.GONE);
|
btnSaveAttachments.setVisibility(save ? View.VISIBLE : View.GONE);
|
||||||
tvNoInternetAttachments.setVisibility(downloading && !suitable ? View.VISIBLE : View.GONE);
|
tvNoInternetAttachments.setVisibility(downloading && !suitable ? View.VISIBLE : View.GONE);
|
||||||
|
|
||||||
|
ibDecrypt.setVisibility(is_encrypted ? View.VISIBLE : View.GONE);
|
||||||
|
|
||||||
cbInline.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
cbInline.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
||||||
|
|
|
@ -195,13 +195,13 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="6dp"
|
android:layout_marginStart="6dp"
|
||||||
android:layout_marginTop="3dp"
|
android:layout_marginTop="3dp"
|
||||||
android:layout_marginEnd="6dp"
|
android:layout_marginEnd="42dp"
|
||||||
android:fontFamily="monospace"
|
android:fontFamily="monospace"
|
||||||
android:minHeight="396dp"
|
android:minHeight="396dp"
|
||||||
android:paddingBottom="6dp"
|
android:paddingBottom="6dp"
|
||||||
android:text="Body"
|
android:text="Body"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
app:layout_constraintEnd_toStartOf="@id/ibReply"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/tvNoInternetBody" />
|
app:layout_constraintTop_toBottomOf="@id/tvNoInternetBody" />
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue