private void setprivacyTextValue(String circleid) { Resources res = getResources(); if (StringUtil.isValidString(circleid)) { if (isInMyprivacyCircle(circleid)) { // set status of request id_user_in_privacy_circle.setVisibility(View.VISIBLE); id_user_in_privacy_circle.setText(res.getString(R.string.people_circle_summary)); if (mUser.profile_privacy && BpcFriendsItemView.isalreadyRequestProfile(mUser.pedding_requests)) { id_user_in_privacy_circle.setText(res.getString(R.string.already_send_request)); } else if (!mUser.profile_privacy) { id_user_in_privacy_circle.setText(res.getString(R.string.already_exchange_info)); } } else { if (mUser.profile_privacy && BpcFriendsItemView.isalreadyRequestProfile(mUser.pedding_requests)) { id_user_in_privacy_circle.setVisibility(View.VISIBLE); id_user_in_privacy_circle.setText(res.getString(R.string.already_send_request)); } else { id_user_in_privacy_circle.setVisibility(View.GONE); } } } else { id_user_in_privacy_circle.setVisibility(View.GONE); } }
private void setrequestStatusUi() { // set attention if (mUser.uid == AccountServiceUtils.getBorqsAccountID()) { // request_concern.setVisibility(View.GONE); } else { if (StringUtil.isValidString(mUser.circleId)) { if (mUser.his_friend) { if (mUser.profile_privacy && (!StringUtil.isValidString(mUser.pedding_requests) || !BpcFriendsItemView.isalreadyRequestProfile(mUser.pedding_requests))) { // request_concern.setVisibility(View.VISIBLE); // request_concern.setText(R.string.request_see_user_profile); } else { // request_concern.setVisibility(View.GONE); } } else { // request_concern.setText(R.string.request_concern); // request_concern.setVisibility(View.VISIBLE); } } else { // request_concern.setVisibility(View.GONE); } } }