mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 09:01:30 +01:00
Added attachment errors
This commit is contained in:
@@ -133,8 +133,14 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
|
||||
progressbar.setVisibility(
|
||||
attachment.progress == null || attachment.available ? View.GONE : View.VISIBLE);
|
||||
|
||||
tvDebug.setText(attachment.type + " " + attachment.disposition + " " + attachment.cid + " " + attachment.encryption);
|
||||
tvDebug.setVisibility(debug ? View.VISIBLE : View.GONE);
|
||||
if (debug)
|
||||
tvDebug.setText(attachment.error +
|
||||
"\n" + attachment.type +
|
||||
" " + attachment.disposition +
|
||||
" " + attachment.cid + " " + attachment.encryption);
|
||||
else if (attachment.error != null)
|
||||
tvDebug.setText(attachment.error);
|
||||
tvDebug.setVisibility(debug || attachment.error != null ? View.VISIBLE : View.GONE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user