|
|
@ -2187,8 +2187,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
db.operation().liveOperations(message.id, EntityOperation.BODY).observe(eowner, new Observer<TupleMessageOperation>() {
|
|
|
|
db.operation().liveOperations(message.id, EntityOperation.BODY).observe(eowner, new Observer<TupleMessageOperation>() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onChanged(TupleMessageOperation operation) {
|
|
|
|
public void onChanged(TupleMessageOperation operation) {
|
|
|
|
grpDownloading.setVisibility(operation == null || operation.id == null ? View.GONE : View.VISIBLE);
|
|
|
|
grpDownloading.setVisibility(operation != null &&
|
|
|
|
ibDownload.setVisibility(operation != null && operation.id == null && !operation.content ? View.VISIBLE : View.GONE);
|
|
|
|
(operation.id != null || operation.uid == null) ? View.VISIBLE : View.GONE);
|
|
|
|
|
|
|
|
ibDownload.setVisibility(operation != null &&
|
|
|
|
|
|
|
|
operation.id == null && operation.uid != null && !operation.content ? View.VISIBLE : View.GONE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|