Show operation account

This commit is contained in:
M66B
2019-02-11 14:59:41 +00:00
parent eed6f8010b
commit 8398e23d78
2 changed files with 5 additions and 2 deletions

View File

@@ -93,7 +93,10 @@ public class AdapterOperation extends RecyclerView.Adapter<AdapterOperation.View
sb.append(' ').append(ex.toString());
}
tvFolder.setText(operation.accountName + "/" + operation.folderName);
String folderName =
(operation.accountName == null ? "" : operation.accountName + "/") + operation.folderName;
tvFolder.setText(folderName);
tvMessage.setText(operation.message == null ? null : Long.toString(operation.message));
tvOperation.setText(sb.toString());
tvTime.setText(DateUtils.getRelativeTimeSpanString(context, operation.created));