Small layout improvement

pull/212/head
M66B 2 years ago
parent 42e31cc6c7
commit 6f31ebc30e

@ -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…
Cancel
Save