Guest User

Untitled

a guest
Jan 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. public void checkForDelete()
  2. {
  3. List<CallServicePart> currentList = mUnansweredQuestionMap.get(mCurrentCallServiceCall);
  4.  
  5. Observable.fromIterable(currentList) //
  6. .count()//
  7. .subscribe(iCount ->
  8. {
  9. if (iCount == 1)
  10. {
  11. mUnansweredQuestionMap.remove(mCurrentCallServiceCall);
  12. }
  13. else
  14. {
  15. List<CallServicePart> list = Observable.fromIterable(currentList)//
  16. .toList()//
  17. .blockingGet();
  18. list.remove(0);
  19. }
  20. });
  21. }
Add Comment
Please, Sign In to add comment