@Override public void onResume() { // TODO Auto-generated method stub super.onResume(); getPushCount(); String accessToken = APP.getSession().getWeiboAccessToken(); if (accessToken == null) { weiboBinding.setVisibility(View.GONE); weiboUnBinding.setVisibility(View.VISIBLE); } else { weiboBinding.setVisibility(View.VISIBLE); weiboUnBinding.setVisibility(View.GONE); } GetSingerInfoRequest request = new GetSingerInfoRequest(getActivity(), new GetSingerInfoRequest.Params(sid)); request.request( new SimpleRequestHandler() { @Override public void onSuccess(Object object) { GetSingerInfoRequest.Result result = (GetSingerInfoRequest.Result) object; city.setText(result.getModels().getAddress()); ImageLoader.getInstance() .displayImage( result.getModels().getSingerimgurl(), avatar, DisplayOptions.IMG.getOptions()); nickname.setText(result.getModels().getSingername()); if (result.isPhoneLogin()) { phoneContainer.setVisibility(View.VISIBLE); } else { phoneContainer.setVisibility(View.GONE); } containerView.setVisibility(View.VISIBLE); } @Override public void onComplete() { loadingView.setVisibility(View.GONE); } }); }
private void onlogout() { APP.getSession().logout(); ((MemberFragment) getParentFragment()).initFragment(LoginFragment.newInstance()); }