Fix attachment updates

Download progress
This commit is contained in:
M66B
2018-08-04 19:50:41 +00:00
parent f931dd7c66
commit 242be4c511
5 changed files with 31 additions and 8 deletions

View File

@@ -267,7 +267,8 @@ public class AdapterAttachment extends RecyclerView.Adapter<AdapterAttachment.Vi
if (attachment.progress != null)
holder.tvProgress.setText(String.format("%d %%", attachment.progress));
holder.tvProgress.setVisibility(attachment.progress == null ? View.GONE : View.VISIBLE);
holder.tvProgress.setVisibility(
attachment.progress == null || attachment.content != null ? View.GONE : View.VISIBLE);
if (attachment.content == null) {
if (attachment.progress == null) {