Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. private void getOrderID() {
  2.  
  3. for (int i = 0; i < userID.size(); i++) {
  4. databaseReference.child(opearatorID).child(userID.get(i)).addValueEventListener(new ValueEventListener() {
  5. @Override
  6. public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
  7. for (DataSnapshot childSnapshot : dataSnapshot.getChildren()) {
  8. keyStatusRelation.put(childSnapshot.getKey(),childSnapshot.getValue(Order.class).getStatus());
  9. }
  10. loadData();
  11.  
  12. }
  13.  
  14. @Override
  15. public void onCancelled(@NonNull DatabaseError databaseError) {
  16.  
  17. }
  18. });
  19.  
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement