Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. mainViewModel.getListLiveData().observe(MainActivity.this, new Observer<List<Student>>() {
  2. @Override
  3. public void onChanged(@Nullable List<Student> list) {
  4. if(list.size() > 0){
  5. mainViewModel.getStudentLiveData().observe(MainActivity.this, new Observer<Student>() {
  6. @Override
  7. public void onChanged(@Nullable Student student) {
  8.  
  9. }
  10. });
  11. }
  12.  
  13. }
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement