mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 22:51:02 +00:00
Small layout improvement
This commit is contained in:
parent
42e31cc6c7
commit
6f31ebc30e
2 changed files with 2 additions and 1 deletions
|
@ -206,6 +206,7 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
|
|||
tvType.setText(sb.toString());
|
||||
|
||||
tvError.setText(attachment.error);
|
||||
tvError.setTextColor(Helper.resolveColor(context, attachment.available ? R.attr.colorWarning : R.attr.colorError));
|
||||
tvError.setVisibility(attachment.error == null ? View.GONE : View.VISIBLE);
|
||||
|
||||
if (properties != null) {
|
||||
|
|
|
@ -4883,7 +4883,7 @@ public class FragmentCompose extends FragmentBase {
|
|||
|
||||
// https://www.rfc-editor.org/rfc/rfc2231
|
||||
if (attachment.name != null && attachment.name.length() > 60)
|
||||
db.attachment().setError(attachment.id, context.getString(R.string.title_attachment_filename));
|
||||
db.attachment().setWarning(attachment.id, context.getString(R.string.title_attachment_filename));
|
||||
|
||||
} catch (Throwable ex) {
|
||||
// Reset progress on failure
|
||||
|
|
Loading…
Reference in a new issue