Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public void onNewConversation(String target)
  2. {
  3. createNewConversation(target);
  4.  
  5. int position = pagerAdapter.getPositionByName(target);
  6.  
  7. if (position == 0) {
  8.  
  9. pager.setCurrentItem(pagerAdapter.getPositionByName(target) - 1);
  10. pager.setCurrentItem(1);
  11. }
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement