Browse Source

Added debug info

main
M66B 6 years ago
parent
commit
7ffb9ea2c3
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      app/src/main/java/eu/faircode/email/AdapterMessage.java

+ 3
- 3
app/src/main/java/eu/faircode/email/AdapterMessage.java View File

@ -103,12 +103,12 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
tvSubject.setText(message.subject); tvSubject.setText(message.subject);
String extra = (debug ? (message.ui_hide ? "HIDDEN " : "") + message.uid + "/" + message.id + " " : "");
if (viewType == ViewType.FOLDER) { if (viewType == ViewType.FOLDER) {
String extra = (message.ui_hide ? "HIDDEN " : "") + message.uid + "/" + message.id;
tvCount.setText((debug ? extra + " " : "") + Integer.toString(message.count));
tvCount.setText(extra + Integer.toString(message.count));
tvCount.setVisibility(debug || message.count > 1 ? View.VISIBLE : View.GONE); tvCount.setVisibility(debug || message.count > 1 ? View.VISIBLE : View.GONE);
} else } else
tvCount.setText(Helper.localizeFolderName(context, message.folderName));
tvCount.setText(extra + Helper.localizeFolderName(context, message.folderName));
ivAttachments.setVisibility(message.attachments > 0 ? View.VISIBLE : View.GONE); ivAttachments.setVisibility(message.attachments > 0 ? View.VISIBLE : View.GONE);


Loading…
Cancel
Save