private void updateUser(User user,boolean refreshAvatar){
  this.user=user;
  if (avatar == null) {
    return;
  }
  if (avatar.getDrawable() == null || refreshAvatar) {
    loadAvatar(!refreshAvatar);
  }
  if (user.getPoints() != null) {
    long points=user.getPoints();
    Level level=new Level(points);
    levelText.setText(String.valueOf(level.getLevel()));
  }
  followView.setUser(user,userHandler,client);
  decideEditLinks();
}

private void updateUser ( User user , boolean refreshAvatar ) { this . user = user ; if ( avatar == null ) { return ; } if ( avatar . getDrawable ( ) == null || refreshAvatar ) { loadAvatar ( ! refreshAvatar ) ; } if ( user . getPoints ( ) != null ) { long points = user . getPoints ( ) ; Level level = new Level ( points ) ; levelText . setText ( String . valueOf ( level . getLevel ( ) ) ) ; } followView . setUser ( user , userHandler , client ) ; decideEditLinks ( ) ; }
updates the stored user object and the screen ' s visuals . must be run on the ui thread .
