Pārlūkot izejas kodu

Memunculkan teks ketika data dokumen tidak valid di ProblemWorkingAdapter

ilhamitubagoes 2 gadi atpakaļ
vecāks
revīzija
0862ee0d84

+ 5 - 2
app/src/main/java/com/fusi24/entryPermitScanner/adapter/ProblemWorkingAdapter.java

@@ -69,10 +69,13 @@ public class ProblemWorkingAdapter extends RecyclerView.Adapter<ProblemWorkingAd
69 69
         DataResultPermit permit = resultPermits.get(position);
70 70
         holder.binding.tvGroupName.setText(permit.getWorkingType().getName());
71 71
 
72
-        if (permit.getProblems().size() == 0){
72
+        /*if (permit.getProblems().size() == 0){
73 73
             holder.binding.tvMessage.setVisibility(View.VISIBLE);
74 74
             holder.binding.tvMessage.setText(permit.getMessage());
75
-        }
75
+        }*/
76
+
77
+        holder.binding.tvMessage.setVisibility(View.VISIBLE);
78
+        holder.binding.tvMessage.setText(permit.getMessage());
76 79
 
77 80
         groupList = Stream.of(permit.getProblems())
78 81
                 .map(v -> v.getDataDocumentType().getGroup())