|
@@ -32,14 +32,6 @@ public class ProblemDocumentAdapter extends RecyclerView.Adapter<ProblemDocument
|
32
|
32
|
this.problemsListFiltered = problemsList;
|
33
|
33
|
}
|
34
|
34
|
|
35
|
|
- public void setVisibility(Boolean visibility) {
|
36
|
|
- if (visibility != null){
|
37
|
|
- isVisibility = visibility;
|
38
|
|
- }else {
|
39
|
|
- isVisibility = false;
|
40
|
|
- }
|
41
|
|
- }
|
42
|
|
-
|
43
|
35
|
static class ViewHolder extends RecyclerView.ViewHolder {
|
44
|
36
|
private RowDocumentBinding binding;
|
45
|
37
|
|
|
@@ -63,15 +55,7 @@ public class ProblemDocumentAdapter extends RecyclerView.Adapter<ProblemDocument
|
63
|
55
|
DataProblems problems = problemsListFiltered.get(position);
|
64
|
56
|
|
65
|
57
|
holder.binding.tvDocumentName.setText(problems.getDataDocumentType().getName());
|
66
|
|
- if (isVisibility){
|
67
|
|
- if (problems.getReason().equals("NOT FOUND")){
|
68
|
|
- holder.binding.tvDocumentStatus.setVisibility(View.GONE);
|
69
|
|
- }else {
|
70
|
|
- holder.binding.tvDocumentStatus.setText(problems.getReason());
|
71
|
|
- }
|
72
|
|
- }else {
|
73
|
|
- holder.binding.tvDocumentStatus.setText(problems.getReason());
|
74
|
|
- }
|
|
58
|
+ holder.binding.tvDocumentStatus.setText(problems.getReason());
|
75
|
59
|
if (problems.getExpiryDate() != null){
|
76
|
60
|
holder.binding.tvDocumentDate.setText(DateHelper.convertStringToMyPattern(problems.getExpiryDate(), "yyyy-MM-dd", "dd MMM yyyy"));
|
77
|
61
|
} else {
|