コード例 #1
0
 public void setUser(long paramLong, VineUser paramVineUser) {
   if (paramLong == paramVineUser.userId) setState(1);
   while (true) {
     invalidate();
     return;
     if (paramVineUser.hasFollowRequested()) setState(4);
     else if (paramVineUser.isFollowing()) setState(3);
     else setState(2);
   }
 }
コード例 #2
0
 public void follow(VineUser paramVineUser) {
   if (paramVineUser.isPrivate())
     if (this.mState != 4) {
       setState(4);
       invalidate();
     }
   while (this.mState == 3) return;
   setState(3);
   invalidate();
 }
コード例 #3
0
 void bindUserData(VineUser paramVineUser)
 {
   if ((paramVineUser.hasFollowApprovalPending()) && (!this.mHeaderAdded))
   {
     LinearLayout localLinearLayout = (LinearLayout)LayoutInflater.from(getActivity()).inflate(2130903093, null, false);
     if (this.mListView != null)
     {
       this.mListView.addHeaderView(localLinearLayout);
       this.mPendingFollowAccept = ((RelativeLayout)localLinearLayout.findViewById(2131361949));
       this.mPendingFollowAccept.setOnClickListener(this);
       this.mPendingFollowReject = ((RelativeLayout)localLinearLayout.findViewById(2131361946));
       this.mPendingFollowReject.setOnClickListener(this);
       this.mFollowHeader = localLinearLayout;
       this.mHeaderAdded = true;
     }
     this.mFollowHeader.setVisibility(0);
   }
   this.mRepostsEnabled = this.mUser.areRepostsEnabled();
   setRevineOptionText(paramVineUser, paramVineUser.areRepostsEnabled());
   this.mProfileHeaderAdapter.bindUser(paramVineUser);
   updateTabSelection();
 }
コード例 #4
0
 private void setRevineOptionText(VineUser paramVineUser, boolean paramBoolean)
 {
   MenuItem localMenuItem = this.mHideRevines;
   if (localMenuItem != null)
   {
     if ((paramVineUser != null) && (!paramVineUser.isFollowing()))
       localMenuItem.setVisible(false);
   }
   else
     return;
   if (paramBoolean)
   {
     localMenuItem.setTitle(2131624148);
     return;
   }
   localMenuItem.setTitle(2131624352);
 }