Improved debug info

This commit is contained in:
M66B 2019-01-05 14:08:07 +00:00
parent b42b284e41
commit 1a15a1e931
1 changed files with 6 additions and 5 deletions

View File

@ -466,13 +466,14 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
if (debug) { if (debug) {
String text = "error=" + message.error + String text = "error=" + message.error +
"\n uid=" + message.uid + " id=" + message.id + " " + df.format(new Date(message.received)) + "\nuid=" + message.uid + " id=" + message.id + " " + df.format(new Date(message.received)) +
"\n" + (message.ui_hide ? "HIDDEN " : "") + "\n" + (message.ui_hide ? "HIDDEN " : "") +
"seen=" + message.seen + "/" + message.ui_seen + " unseen=" + message.unseen + "seen=" + message.seen + "/" + message.ui_seen +
" unseen=" + message.unseen +
" found=" + message.ui_found + " found=" + message.ui_found +
"\n msgid=" + message.msgid + "\nmsgid=" + message.msgid +
"\n thread=" + message.thread + "\nthread=" + message.thread +
"\n sender=" + message.sender; "\nsender=" + message.sender;
tvError.setText(text); tvError.setText(text);
tvError.setVisibility(View.VISIBLE); tvError.setVisibility(View.VISIBLE);