Hello, good afternoon
My Custom ListView is not displaying my real time data from Firebase, follow the code
public void gerarLotes() {
lotes = new ArrayList<>();
lotesReferencia.addChildEventListener(new ChildEventListener() {
@Override
public void onChildAdded (@NonNull DataSnapshot dataSnapshot, @Nullable String s){
for(DataSnapshot postSnapshot : dataSnapshot.getChildren()){
Lotes json = dataSnapshot.getValue(Lotes.class);
HMAux aux = new HMAux();
aux.put(HMAux.TEXTO_01, json.getId());
aux.put(HMAux.TEXTO_02, json.getPecas());
aux.put(HMAux.TEXTO_03, json.getPreço());
lotes.add(aux);
}
}