Less intrusive message help

pull/162/head
M66B 5 years ago
parent ae195136ac
commit 449166e009

@ -2191,6 +2191,10 @@ so you cannot use FairEmail to access ProtonMail.
<a name="faq130"></a> <a name="faq130"></a>
**(130) What does message error ... mean?** **(130) What does message error ... mean?**
The warning *No server found at ...* means that there was no email server registered at the indicated domain name.
Replying to the message might not be possible and might result in an error.
This could indicate a falsified email address and/or spam.
The error *... ParseException ...* means that there is a problem with a received message, likely caused by a bug in the sending software. The error *... ParseException ...* means that there is a problem with a received message, likely caused by a bug in the sending software.
FairEmail will workaround this is in most cases, so this message can mostly be considered as a warning instead of an error. FairEmail will workaround this is in most cases, so this message can mostly be considered as a warning instead of an error.

@ -260,7 +260,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
private ImageView ivThread; private ImageView ivThread;
private TextView tvPreview; private TextView tvPreview;
private TextView tvError; private TextView tvError;
private Button btnHelp; private ImageButton ibHelp;
private ContentLoadingProgressBar pbLoading; private ContentLoadingProgressBar pbLoading;
private View vsBody; private View vsBody;
@ -370,7 +370,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
tvCount = itemView.findViewById(R.id.tvCount); tvCount = itemView.findViewById(R.id.tvCount);
ivThread = itemView.findViewById(R.id.ivThread); ivThread = itemView.findViewById(R.id.ivThread);
tvError = itemView.findViewById(R.id.tvError); tvError = itemView.findViewById(R.id.tvError);
btnHelp = itemView.findViewById(R.id.btnHelp); ibHelp = itemView.findViewById(R.id.ibHelp);
pbLoading = itemView.findViewById(R.id.pbLoading); pbLoading = itemView.findViewById(R.id.pbLoading);
if (compact) if (compact)
@ -514,7 +514,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ibFlagged.setOnClickListener(this); ibFlagged.setOnClickListener(this);
if (viewType == ViewType.THREAD) if (viewType == ViewType.THREAD)
ibFlagged.setOnLongClickListener(this); ibFlagged.setOnLongClickListener(this);
btnHelp.setOnClickListener(this); ibHelp.setOnClickListener(this);
if (vsBody != null) { if (vsBody != null) {
ibExpanderAddress.setOnClickListener(this); ibExpanderAddress.setOnClickListener(this);
@ -565,7 +565,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ibFlagged.setOnClickListener(null); ibFlagged.setOnClickListener(null);
if (viewType == ViewType.THREAD) if (viewType == ViewType.THREAD)
ibFlagged.setOnLongClickListener(null); ibFlagged.setOnLongClickListener(null);
btnHelp.setOnClickListener(null); ibHelp.setOnClickListener(null);
if (vsBody != null) { if (vsBody != null) {
ibExpanderAddress.setOnClickListener(null); ibExpanderAddress.setOnClickListener(null);
@ -613,7 +613,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
ivThread.setVisibility(View.GONE); ivThread.setVisibility(View.GONE);
tvPreview.setVisibility(View.GONE); tvPreview.setVisibility(View.GONE);
tvError.setVisibility(View.GONE); tvError.setVisibility(View.GONE);
btnHelp.setVisibility(View.GONE); ibHelp.setVisibility(View.GONE);
pbLoading.setVisibility(View.VISIBLE); pbLoading.setVisibility(View.VISIBLE);
clearExpanded(null); clearExpanded(null);
@ -808,7 +808,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
} else { } else {
tvError.setText(error); tvError.setText(error);
tvError.setVisibility(error == null ? View.GONE : View.VISIBLE); tvError.setVisibility(error == null ? View.GONE : View.VISIBLE);
btnHelp.setVisibility(error == null ? View.GONE : View.VISIBLE); ibHelp.setVisibility(error == null ? View.GONE : View.VISIBLE);
} }
// Contact info // Contact info
@ -1501,7 +1501,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
onShowSnoozed(message); onShowSnoozed(message);
else if (view.getId() == R.id.ibFlagged) else if (view.getId() == R.id.ibFlagged)
onToggleFlag(message); onToggleFlag(message);
else if (view.getId() == R.id.btnHelp) else if (view.getId() == R.id.ibHelp)
onHelp(message); onHelp(message);
else if (view.getId() == R.id.ibSearchContact) else if (view.getId() == R.id.ibSearchContact)
onSearchContact(message); onSearchContact(message);

@ -283,27 +283,26 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="6dp" android:layout_marginStart="6dp"
android:layout_marginEnd="6dp" android:layout_marginEnd="6dp"
android:gravity="center_vertical"
android:minHeight="24dp"
android:text="error" android:text="error"
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?attr/colorWarning" android:textColor="?attr/colorWarning"
android:textIsSelectable="true" android:textIsSelectable="true"
app:layout_constraintEnd_toStartOf="@+id/paddingEnd" app:layout_constraintEnd_toStartOf="@+id/btnHelp"
app:layout_constraintStart_toEndOf="@id/paddingStart" app:layout_constraintStart_toEndOf="@id/paddingStart"
app:layout_constraintTop_toBottomOf="@id/tvPreview" /> app:layout_constraintTop_toBottomOf="@id/tvPreview" />
<Button <ImageButton
android:id="@+id/btnHelp" android:id="@+id/ibHelp"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:backgroundTint="?attr/colorAccent" android:layout_marginEnd="6dp"
android:minWidth="0dp" android:background="?android:attr/selectableItemBackgroundBorderless"
android:minHeight="0dp" android:tint="?attr/colorWarning"
android:text="@string/title_setup_help" app:layout_constraintEnd_toStartOf="@+id/paddingEnd"
android:textColor="@android:color/black" app:layout_constraintTop_toTopOf="@id/tvError"
android:textStyle="bold" app:srcCompat="@drawable/baseline_info_24" />
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvError" />
<View <View
android:id="@+id/paddingEnd" android:id="@+id/paddingEnd"
@ -321,7 +320,7 @@
android:visibility="gone" android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/btnHelp" /> app:layout_constraintTop_toBottomOf="@id/tvError" />
<eu.faircode.email.ContentLoadingProgressBar <eu.faircode.email.ContentLoadingProgressBar
android:id="@+id/pbLoading" android:id="@+id/pbLoading"

@ -278,27 +278,26 @@
android:layout_marginStart="6dp" android:layout_marginStart="6dp"
android:layout_marginTop="3dp" android:layout_marginTop="3dp"
android:layout_marginEnd="6dp" android:layout_marginEnd="6dp"
android:gravity="center_vertical"
android:minHeight="24dp"
android:text="error" android:text="error"
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?attr/colorWarning" android:textColor="?attr/colorWarning"
android:textIsSelectable="true" android:textIsSelectable="true"
app:layout_constraintEnd_toStartOf="@+id/paddingEnd" app:layout_constraintEnd_toStartOf="@+id/ibHelp"
app:layout_constraintStart_toEndOf="@id/paddingStart" app:layout_constraintStart_toEndOf="@id/paddingStart"
app:layout_constraintTop_toBottomOf="@id/tvPreview" /> app:layout_constraintTop_toBottomOf="@id/tvPreview" />
<Button <ImageButton
android:id="@+id/btnHelp" android:id="@+id/ibHelp"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:backgroundTint="?attr/colorAccent" android:layout_marginEnd="6dp"
android:minWidth="0dp" android:background="?android:attr/selectableItemBackgroundBorderless"
android:minHeight="0dp" android:tint="?attr/colorWarning"
android:text="@string/title_setup_help" app:layout_constraintEnd_toStartOf="@+id/paddingEnd"
android:textColor="@android:color/black" app:layout_constraintTop_toTopOf="@id/tvError"
android:textStyle="bold" app:srcCompat="@drawable/baseline_info_24" />
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvError" />
<View <View
android:id="@+id/paddingEnd" android:id="@+id/paddingEnd"
@ -314,7 +313,7 @@
android:layout_height="3dp" android:layout_height="3dp"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/btnHelp" /> app:layout_constraintTop_toBottomOf="@id/tvError" />
<eu.faircode.email.ContentLoadingProgressBar <eu.faircode.email.ContentLoadingProgressBar
android:id="@+id/pbLoading" android:id="@+id/pbLoading"

Loading…
Cancel
Save