Progress bar for attachment downloads

This commit is contained in:
M66B
2018-08-05 06:18:43 +00:00
parent f4970a0aa5
commit b460c06d1b
9 changed files with 98 additions and 61 deletions

View File

@@ -237,9 +237,9 @@ public class FragmentMessage extends Fragment {
DB.getInstance(getContext()).attachment().liveAttachments(id).removeObservers(FragmentMessage.this);
DB.getInstance(getContext()).attachment().liveAttachments(id).observe(FragmentMessage.this,
new Observer<List<EntityAttachment>>() {
new Observer<List<TupleAttachment>>() {
@Override
public void onChanged(@Nullable List<EntityAttachment> attachments) {
public void onChanged(@Nullable List<TupleAttachment> attachments) {
adapter.set(attachments);
grpAttachments.setVisibility(attachments.size() > 0 ? View.VISIBLE : View.GONE);
}