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 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 b(User paramUser, boolean paramBoolean)
 {
   WebImageView localWebImageView = (WebImageView)findViewById(2131494089);
   String str = paramUser.getUserPhotoUrl();
   h.c(getContext()).a(str).a(2130837659).a(localWebImageView);
   if ((!paramBoolean) || (paramUser.getUserPhotoCount() > 0)) {
     findViewById(2131494090).setVisibility(4);
   }
   if ((paramBoolean) || ((!TextUtils.isEmpty(str)) && (paramUser.getUserPhotoCount() > 0))) {
     localWebImageView.setOnClickListener(new aa(this, EventIri.ProfileUserPhotos, paramUser));
   }
 }
 private void setUpHeaderButtons(User paramUser)
 {
   boolean bool2 = true;
   Object localObject = (TwoTierButton)findViewById(2131493898);
   ((TwoTierButton)localObject).setLabel(getResources().getQuantityString(2131623971, paramUser.getReviewCount()));
   ((TwoTierButton)localObject).setValue(String.valueOf(paramUser.getReviewCount()));
   ((TwoTierButton)localObject).setOnClickListener(new by(EventIri.ProfileButtonBar_Reviews, SingleFeedFragmentActivity.a(getContext(), paramUser, paramUser.getReviewCount(), SingleCurrentUserFeedEntryFragment.FeedFragmentType.Review)));
   label169:
   TwoTierButton localTwoTierButton;
   int k;
   int m;
   if (paramUser.getReviewCount() > 0)
   {
     bool1 = true;
     ((TwoTierButton)localObject).setEnabled(bool1);
     localObject = (TwoTierButton)findViewById(2131493998);
     ((TwoTierButton)localObject).setLabel(getResources().getQuantityString(2131623953, paramUser.getFriendCount()));
     ((TwoTierButton)localObject).setValue(String.valueOf(paramUser.getFriendCount()));
     ((TwoTierButton)localObject).setOnClickListener(new by(EventIri.ProfileButtonBar_Friends, ActivityFriendList.a(getContext(), paramUser)));
     if (paramUser.getFriendCount() <= 0) {
       break label293;
     }
     bool1 = true;
     ((TwoTierButton)localObject).setEnabled(bool1);
     localTwoTierButton = (TwoTierButton)findViewById(2131493895);
     k = paramUser.getVideoCount();
     m = paramUser.getPhotoCount();
     int n = k + m;
     if ((k <= 0) || (m <= 0)) {
       break label299;
     }
     localObject = a(2131166331);
     label220:
     localTwoTierButton.setLabel((CharSequence)localObject);
     localTwoTierButton.setValue(String.valueOf(n));
     localTwoTierButton.setOnClickListener(new by(EventIri.ProfileButtonBar_Photos, UserBizMediaGrid.a(getContext(), new UserLocalMediaRequest(paramUser), (String)localObject, paramUser)));
     if (n <= 0) {
       break label335;
     }
   }
   label293:
   label299:
   label335:
   for (boolean bool1 = bool2;; bool1 = false)
   {
     localTwoTierButton.setEnabled(bool1);
     return;
     bool1 = false;
     break;
     bool1 = false;
     break label169;
     if (k > 0)
     {
       localObject = getResources().getQuantityString(2131623984, k);
       break label220;
     }
     localObject = getResources().getQuantityString(2131623966, m);
     break label220;
   }
 }
 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() }));
   }
 }
 private void setUpUserNameAndQuote(User paramUser)
 {
   TextView localTextView1 = (TextView)findViewById(2131494091);
   TextView localTextView2 = (TextView)findViewById(2131494092);
   localTextView1.setTextColor(b);
   localTextView2.setTextColor(c);
   if (d != 0)
   {
     localTextView1.setShadowLayer(1.0F, -0.25F, -1.0F, d);
     localTextView2.setShadowLayer(1.0F, -0.25F, -1.0F, d);
   }
   if (TextUtils.isEmpty(paramUser.getNickname())) {
     localTextView1.setText(paramUser.getName());
   }
   while (paramUser.getHeadline() != null)
   {
     localTextView2.setVisibility(0);
     localTextView2.setText(paramUser.getHeadline());
     return;
     localTextView1.setText(String.format("%s %s %s.", new Object[] { paramUser.getFirstName(), StringUtils.d(paramUser.getNickname()), paramUser.getLastInitial() }));
   }
   localTextView2.setVisibility(8);
 }
 private void setUpEliteBanner(User paramUser)
 {
   ViewGroup localViewGroup = (ViewGroup)findViewById(2131494086);
   localViewGroup.setBackgroundDrawable(f);
   if (f != null) {}
   for (int k = 0;; k = 8)
   {
     localViewGroup.setVisibility(k);
     if (paramUser.isEliteUser()) {
       a(paramUser, localViewGroup);
     }
     return;
   }
 }
 private void a(User paramUser, ViewGroup paramViewGroup)
 {
   List localList = paramUser.getYearsElite();
   Collections.sort(localList, Collections.reverseOrder());
   int m = localList.size();
   LinearLayout.LayoutParams localLayoutParams = cp.b();
   int k = ao.m;
   rightMargin = k;
   leftMargin = k;
   if (m > 3)
   {
     rightMargin = 0;
     leftMargin = -1;
   }
   k = 0;
   if (k < m)
   {
     User.EliteYear localEliteYear = (User.EliteYear)localList.get(k);
     Object localObject = getContext();
     User.EliteYear.TYPE localTYPE = type;
     if ((k != 0) && (m > 3)) {}
     for (boolean bool = true;; bool = false)
     {
       localObject = new EliteBadge((Context)localObject, null, localTYPE.getBadge(bool));
       paramViewGroup.addView((View)localObject, localLayoutParams);
       if (k >= 5) {
         break label164;
       }
       ((EliteBadge)localObject).setYear(year);
       k += 1;
       break;
     }
   }
   label164:
   paramUser = WhatsAnElite.a(getContext(), paramUser);
   paramViewGroup.setOnClickListener(new by(EventIri.ProfileEliteBanner, paramUser));
 }