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); }
private void setUpBasicUserInfo(User paramUser) { g = ((ViewGroup)findViewById(2131493472)); Context localContext = getContext(); Object localObject = a(g); ((TextView)localObject).setText(a(StringUtils.a(localContext, 2131166901, new Object[] { paramUser.getLocation() }), a)); ((TextView)localObject).setEnabled(false); if (paramUser.getMemberSince() != null) { localObject = a(g); ((TextView)localObject).setId(2131492929); ((TextView)localObject).setEnabled(false); ((TextView)localObject).setText(a(StringUtils.a(localContext, 2131166902, new Object[] { a(paramUser.getMemberSince()) }), a)); } if (paramUser.isFriend()) { localObject = LayoutInflater.from(localContext).inflate(2130903352, g, false); g.addView((View)localObject); CompoundButton localCompoundButton = (CompoundButton)((View)localObject).findViewById(2131493923); localCompoundButton.setChecked(paramUser.isSendingNotifications()); localCompoundButton.setOnCheckedChangeListener(new ae(paramUser)); ((View)localObject).setOnClickListener(new ad(this, localCompoundButton)); localObject = (SpannableWidget)localObject; } h = b(g); if (AppData.b().m().a(paramUser)) { h.setText(localContext.getString(2131166104)); } for (;;) { h.setOnClickListener(new by(EventIri.ProfileMoreAboutButton, MoreAboutUser.a(localContext, paramUser))); paramUser = (SpannableWidget)h; if (paramUser != null) { paramUser.setRight(true); } return; h.setText(localContext.getString(2131166103, new Object[] { paramUser.getFirstName() })); } }