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); } }
public void follow(VineUser paramVineUser) { if (paramVineUser.isPrivate()) if (this.mState != 4) { setState(4); invalidate(); } while (this.mState == 3) return; setState(3); invalidate(); }
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(); }
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); }