Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. public void refreshUserInformation(final RefreshListener listener){
  2. if (data != null){
  3. NetworkUtils.getUserInformation(this, data.getAuth(), new NetworkUtils.UserInformationListener() {
  4. @Override
  5. public void onUserInformationSuccess(UserInformation u) {
  6. data.updateFromUserInformation(u);
  7. writeData();
  8. if (listener != null){
  9. listener.onRefreshComplete();
  10. }
  11. }
  12. @Override
  13. public void onUserInformationFail() {
  14.  
  15. }
  16. });
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement