Small layout improvement

This commit is contained in:
M66B 2023-04-22 08:18:36 +02:00
parent 42e31cc6c7
commit 6f31ebc30e
2 changed files with 2 additions and 1 deletions

View File

@ -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) {

View File

@ -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