Small improvements

This commit is contained in:
M66B
2018-08-13 18:31:42 +00:00
parent 33ad41020a
commit 106e518960
8 changed files with 50 additions and 29 deletions

View File

@@ -703,8 +703,11 @@ public class FragmentCompose extends FragmentEx {
new Observer<List<EntityAttachment>>() {
@Override
public void onChanged(@Nullable List<EntityAttachment> attachments) {
adapter.set(attachments == null ? new ArrayList<EntityAttachment>() : attachments);
grpAttachments.setVisibility(attachments != null && attachments.size() > 0 ? View.VISIBLE : View.GONE);
if (attachments == null)
attachments = new ArrayList<>();
adapter.set(attachments);
grpAttachments.setVisibility(attachments.size() > 0 ? View.VISIBLE : View.GONE);
}
});