private void a(User paramUser, LeftDrawableButton paramLeftDrawableButton1, LeftDrawableButton paramLeftDrawableButton2) { if (paramUser.isFeatureDisabled(FeatureSet.Feature.ADD_FRIEND)) { paramLeftDrawableButton1.setVisibility(8); } if (paramUser.isFeatureDisabled(FeatureSet.Feature.SEND_COMPLIMENT)) { paramLeftDrawableButton2.setVisibility(8); } }
public void setUpCommunityInteractionButtons(User paramUser) { Object localObject = (ViewGroup)findViewById(2131494094); if (!AppData.b().m().a(paramUser)) { i = ((LeftDrawableButton)findViewById(2131493858)); j = ((LeftDrawableButton)findViewById(2131493057)); localObject = (LeftDrawableButton)findViewById(2131494095); a(paramUser, i, j); i.setOnClickListener(b(paramUser)); j.setOnClickListener(c(paramUser)); ((LeftDrawableButton)localObject).setOnClickListener(d(paramUser)); if ((paramUser.isFeatureDisabled(FeatureSet.Feature.SEND_MESSAGE)) || (!Features.messaging.isEnabled())) { ((LeftDrawableButton)localObject).setVisibility(8); } if (paramUser.isFriend()) { i.setVisibility(8); j.setText(getResources().getString(2131165586)); } while (!paramUser.isFriendRequestPending()) { return; } i.setClickable(false); i.setBackgroundResource(2130837709); i.setText(getResources().getString(2131165866)); i.setTextColor(getResources().getColor(2131361834)); i.setImage(2130837576); return; } ((ViewGroup)localObject).setVisibility(8); }