Esempio n. 1
0
 public void onUnblockUserComplete(String paramString1, int paramInt, String paramString2, boolean paramBoolean)
 {
   if (paramInt == 200)
   {
     ProfileFragment localProfileFragment = ProfileFragment.this;
     boolean bool;
     if (!paramBoolean)
     {
       bool = true;
       ProfileFragment.access$702(localProfileFragment, bool);
       ProfileFragment.this.getActivity().supportInvalidateOptionsMenu();
       if (!paramBoolean)
         break label138;
       if (!isUsernameValid())
         break label124;
     }
     label124: for (String str = ProfileFragment.this.mUser.username; ; str = ProfileFragment.this.getString(2131624415))
     {
       Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624413, new Object[] { str }));
       ProfileFragment.this.addRequest(ProfileFragment.this.mAppController.fetchUser(ProfileFragment.this.mUserId));
       return;
       bool = false;
       break;
     }
     label138: Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624407));
     return;
   }
   Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624414));
 }
Esempio n. 2
0
 public void onDisableUserRepostsComplete(String paramString1, int paramInt, String paramString2, boolean paramBoolean)
 {
   if (paramInt == 200)
   {
     ProfileFragment localProfileFragment = ProfileFragment.this;
     boolean bool;
     if (!paramBoolean)
     {
       bool = true;
       ProfileFragment.access$802(localProfileFragment, bool);
       ProfileFragment.this.getActivity().supportInvalidateOptionsMenu();
       if (!paramBoolean)
         break label112;
       if (!isUsernameValid())
         break label98;
     }
     label98: for (String str = ProfileFragment.this.mUser.username; ; str = ProfileFragment.this.getString(2131624416))
     {
       Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624254, new Object[] { str }));
       return;
       bool = false;
       break;
     }
     label112: Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624255));
     return;
   }
   Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624255));
 }
Esempio n. 3
0
 protected void onScrollLastItem(Cursor paramCursor)
 {
   Cursor localCursor = this.mFeedAdapter.getCursor();
   if ((this.mRefreshable) && (!localCursor.getExtras().getBoolean("is_last")) && (localCursor.getCount() <= 400))
   {
     this.mFeedAdapter.onPause(isFocused());
     this.mLastFetchType = 7;
   }
   switch (this.mCurrentTab)
   {
   default:
     return;
   case 1:
     this.mCursorPreviousPosts = localCursor.getCount();
     this.mCursorQuerySizePosts = Util.getNextCursorSize(this.mCursorPreviousPosts);
     showProgress(7);
     getLoaderManager().restartLoader(1, null, this);
     this.mPostPage = (1 + this.mPostPage);
     FlurryUtils.trackTimeLinePageScroll(getClass().getName() + "_Post", this.mPostPage);
     return;
   case 2:
   }
   this.mCursorPreviousLikes = localCursor.getCount();
   this.mCursorQuerySizeLikes = Util.getNextCursorSize(this.mCursorPreviousLikes);
   showProgress(7);
   getLoaderManager().restartLoader(2, null, this);
   this.mLikePage = (1 + this.mLikePage);
   FlurryUtils.trackTimeLinePageScroll(getClass().getName() + "_Like", this.mLikePage);
 }
Esempio n. 4
0
 public void onReportUserComplete(String paramString1, int paramInt, String paramString2)
 {
   if (paramInt == 200)
   {
     if (isUsernameValid());
     for (String str = ProfileFragment.this.mUser.username; ; str = ProfileFragment.this.getString(2131624416))
     {
       Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624411, new Object[] { str }));
       return;
     }
   }
   Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624412));
 }
Esempio n. 5
0
 public void onCreate(Bundle paramBundle)
 {
   int i = 1;
   super.onCreate(paramBundle);
   setHasOptionsMenu(i);
   Bundle localBundle = getArguments();
   this.mUserId = localBundle.getLong("user_id", -1L);
   this.mFlurryEventSource = "Profile: Tab 1";
   this.mFlurryFollowEventSource = localBundle.getString("event_source");
   this.mTakeFocus = localBundle.getBoolean("take_focus", false);
   if (this.mTakeFocus)
     setFocused(i);
   this.mAppSessionListener = new ProfileListener();
   this.mPopupWindow = new PopupWindow(getActivity(), null, 2130772013);
   if (paramBundle != null)
   {
     this.mCurrentTab = paramBundle.getInt("state_tab");
     if (paramBundle.containsKey("stated_header_added"))
       this.mHeaderAdded = paramBundle.getBoolean("stated_header_added");
     this.mCursorQuerySizePosts = Util.getNextCursorSize(0);
     this.mCursorQuerySizeLikes = Util.getNextCursorSize(0);
     showSadface(false);
     this.mRepostsEnabled = i;
     if (this.mUser != null)
       this.mUser.repostsEnabled = i;
     if (localBundle.getStringArrayList("vanity_url") == null)
       break label212;
     this.mAppController.fetchUserId(localBundle.getStringArrayList("vanity_url"));
   }
   label212: 
   while (this.mUserId <= 0L)
   {
     return;
     this.mCurrentTab = i;
     this.mHeaderAdded = false;
     break;
   }
   if (this.mUserId == this.mAppController.getActiveId());
   while (true)
   {
     this.mIsMe = i;
     if (this.mIsMe)
       break;
     this.mAppController.getBlockedUsers();
     return;
     i = 0;
   }
 }
Esempio n. 6
0
 public void onItemClick(AdapterView<?> paramAdapterView, View paramView, int paramInt, long paramLong)
 {
   boolean bool1;
   if (!this.mHideProfileReposts)
   {
     bool1 = true;
     this.mHideProfileReposts = bool1;
     this.mRepostsToggled = true;
     boolean bool2 = this.mHideProfileReposts;
     int i = this.mUser.following;
     boolean bool3 = false;
     if (i > 0)
       bool3 = true;
     FlurryUtils.trackFilterProfileReposts(bool2, bool3, this.mIsMe);
     if (!this.mIsMe)
       break label144;
     SharedPreferences.Editor localEditor = Util.getDefaultSharedPrefs(getActivity()).edit();
     localEditor.putBoolean("profile_hide_reposts", this.mHideProfileReposts);
     localEditor.apply();
   }
   while (true)
   {
     if (this.mPopupWindow != null)
       this.mPopupWindow.dismiss();
     this.mFeedAdapter.onPause(isFocused());
     getLoaderManager().restartLoader(1, null, this);
     return;
     bool1 = false;
     break;
     label144: this.mAppController.setHideProfileReposts(this.mUserId, this.mHideProfileReposts);
   }
 }
Esempio n. 7
0
 private void initProfile()
 {
   if (this.mFeedAdapter.getCursor() == null)
   {
     initLoader(1);
     initLoader(2);
   }
   if (this.mUser != null)
   {
     bindProfileDataAndCounts();
     hideProgress(3);
     if (this.mProfileHeaderAdapter != null)
       if (this.mCurrentTab != 2)
         break label181;
   }
   label181: for (int i = 2131362058; ; i = 2131362056)
   {
     this.mProfileHeaderAdapter.changeSelectedTab(i);
     return;
     this.mFetchFlags = (0x1 | this.mFetchFlags);
     if (this.mIsMe)
     {
       addRequest(this.mAppController.fetchUsersMe(this.mUserId));
       SharedPreferences localSharedPreferences = Util.getDefaultSharedPrefs(getActivity());
       int j = localSharedPreferences.getInt("profile_fetch_count", 0);
       if (j % 5 == 0)
         addRequest(this.mAppController.fetchFriends(this.mUserId));
       localSharedPreferences.edit().putInt("profile_fetch_count", j + 1);
       break;
     }
     addRequest(this.mAppController.fetchUser(this.mUserId));
     break;
   }
 }
 public void clearSearch()
 {
     mQuery.setText("");
     mClear.setVisibility(8);
     mQuery.clearFocus();
     getSupportActionBar().getCustomView().setVisibility(8);
     Util.setSoftKeyboardVisibility(this, mQuery, false);
 }
Esempio n. 9
0
 public void onRespondFollowRequestComplete(String paramString1, int paramInt, String paramString2, boolean paramBoolean, long paramLong)
 {
   if (paramInt == 200)
   {
     if (ProfileFragment.this.mFollowHeader != null)
     {
       ProfileFragment.this.mFollowHeader.findViewById(2131361945).setLayoutParams(new LinearLayout.LayoutParams(-1, 0));
       ProfileFragment.this.mFollowHeader.setVisibility(8);
     }
     return;
   }
   if (paramBoolean)
   {
     Util.showCenteredToast(ProfileFragment.this.getActivity(), 2131623993);
     return;
   }
   Util.showCenteredToast(ProfileFragment.this.getActivity(), 2131624084);
 }
Esempio n. 10
0
 public void onEnableUserRepostsComplete(String paramString1, int paramInt, String paramString2, boolean paramBoolean)
 {
   if (paramInt == 200)
   {
     ProfileFragment.access$802(ProfileFragment.this, paramBoolean);
     ProfileFragment.this.getActivity().supportInvalidateOptionsMenu();
     if (paramBoolean)
     {
       if (isUsernameValid());
       for (String str = ProfileFragment.this.mUser.username; ; str = ProfileFragment.this.getString(2131624416))
       {
         Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624256, new Object[] { str }));
         return;
       }
     }
     Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624257));
     return;
   }
   Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624257));
 }
Esempio n. 11
0
 public void onBlockUserComplete(String paramString1, int paramInt, String paramString2, boolean paramBoolean)
 {
   if (paramInt == 200)
   {
     ProfileFragment.access$702(ProfileFragment.this, paramBoolean);
     ProfileFragment.this.getActivity().supportInvalidateOptionsMenu();
     if (paramBoolean)
     {
       if (isUsernameValid());
       for (String str = ProfileFragment.this.mUser.username; ; str = ProfileFragment.this.getString(2131624415))
       {
         Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624406, new Object[] { str }));
         VineDatabaseHelper.getDatabaseHelper(ProfileFragment.this.getActivity()).removeUserWithType(ProfileFragment.this.mUserId, 2, true, Vine.UserGroupsView.CONTENT_URI_FOLLOWERS);
         return;
       }
     }
     Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624407));
     return;
   }
   Util.showDefaultToast(ProfileFragment.this.getActivity(), ProfileFragment.this.getString(2131624407));
 }
Esempio n. 12
0
 public void onResume()
 {
   super.onResume();
   showProgress(3);
   if (this.mIsMe)
   {
     this.mHideProfileReposts = Util.getDefaultSharedPrefs(getActivity()).getBoolean("profile_hide_reposts", false);
     setup();
     initProfile();
   }
   while (this.mUserId <= 0L)
     return;
   getLoaderManager().restartLoader(3, null, this);
 }
Esempio n. 13
0
 public boolean onOptionsItemSelected(MenuItem paramMenuItem)
 {
   boolean bool = true;
   switch (paramMenuItem.getItemId())
   {
   default:
     bool = super.onOptionsItemSelected(paramMenuItem);
   case 2131362197:
   case 2131362198:
   case 2131362199:
   case 2131362200:
   }
   do
   {
     return bool;
     if (this.mIsUserBlocked)
     {
       this.mAppController.unblockUser(this.mUserId);
       return bool;
     }
     this.mAppController.blockUser(this.mUserId);
     return bool;
     addRequest(this.mAppController.reportPerson(this.mUserId));
     return bool;
     if (this.mRepostsEnabled)
     {
       this.mAppController.disableReposts(this.mUserId);
       return bool;
     }
     this.mAppController.enableReposts(this.mUserId);
     return bool;
   }
   while ((this.mUser == null) || (this.mIsMe));
   FlurryUtils.trackShareProfile();
   Intent localIntent = new Intent("android.intent.action.VIEW");
   localIntent.setType("vnd.android-dir/mms-sms");
   int i = Util.getShareProfileMessageId();
   Object[] arrayOfObject = new Object[2];
   arrayOfObject[0] = this.mUser.username;
   arrayOfObject[bool] = String.valueOf(this.mUser.userId);
   localIntent.putExtra("sms_body", getString(i, arrayOfObject));
   startActivity(Intent.createChooser(localIntent, getString(2131624272)));
   return bool;
 }
Esempio n. 14
0
 private void bindProfileDataAndCounts()
 {
   if (this.mUser == null)
     return;
   if (this.mIsMe)
   {
     SharedPreferences localSharedPreferences = Util.getDefaultSharedPrefs(getActivity());
     this.mUser.username = localSharedPreferences.getString("settings_profile_name", null);
     this.mUser.description = localSharedPreferences.getString("settings_profile_description", null);
     this.mUser.location = localSharedPreferences.getString("settings_profile_location", null);
     this.mUser.email = localSharedPreferences.getString("settings_profile_email", null);
     this.mUser.phoneNumber = localSharedPreferences.getString("settings_profile_phone", null);
     this.mUser.avatarUrl = localSharedPreferences.getString("settings_profile_avatar_url", null);
     this.mUser.followingCount = localSharedPreferences.getInt("profile_follow_count", 0);
     this.mUser.followerCount = localSharedPreferences.getInt("profile_follower_count", 0);
     this.mUser.authoredPostCount = localSharedPreferences.getInt("profile_authored_post_count", 0);
     this.mUser.postCount = localSharedPreferences.getInt("profile_post_count", 0);
     this.mUser.likeCount = localSharedPreferences.getInt("profile_like_count", 0);
   }
   bindUserData(this.mUser);
 }
Esempio n. 15
0
 public void onGetUserIdComplete(String paramString1, int paramInt, String paramString2, long paramLong)
 {
   if (paramLong > 0L)
   {
     ProfileFragment.access$602(ProfileFragment.this, paramLong);
     ProfileFragment localProfileFragment = ProfileFragment.this;
     if (ProfileFragment.this.mUserId == ProfileFragment.this.mAppController.getActiveId());
     for (boolean bool = true; ; bool = false)
     {
       ProfileFragment.access$102(localProfileFragment, bool);
       if (!ProfileFragment.this.mIsMe)
         break;
       ProfileFragment.access$1102(ProfileFragment.this, Util.getDefaultSharedPrefs(ProfileFragment.this.getActivity()).getBoolean("profile_hide_reposts", false));
       ProfileFragment.this.setup();
       ProfileFragment.this.initProfile();
       return;
     }
     ProfileFragment.this.mAppController.getBlockedUsers();
     ProfileFragment.this.getLoaderManager().restartLoader(3, null, ProfileFragment.this);
     return;
   }
   ProfileFragment.this.getActivity().finish();
 }
Esempio n. 16
0
 private void bindView(FeedViewHolder paramFeedViewHolder)
 {
   final VinePost localVinePost = paramFeedViewHolder.post;
   int i = paramFeedViewHolder.position;
   if (shouldShowThumbnail(i))
   {
     SLog.d("Should show thumbnail... {} {}.", Integer.valueOf(i), Integer.valueOf(this.mCurrentPlaying));
     paramFeedViewHolder.videoLoadImage.setVisibility(0);
     paramFeedViewHolder.videoView.setVisibility(4);
   }
   bindAvatar(paramFeedViewHolder);
   bindVideoImage(paramFeedViewHolder);
   long l;
   if ((!paramFeedViewHolder.post.isExplicit()) || (this.mDismissedWarnings.contains(Integer.valueOf(i))))
   {
     paramFeedViewHolder.videoImage.setVisibility(0);
     if (localVinePost.repost == null)
       break label406;
     paramFeedViewHolder.revineContainer.setVisibility(0);
     paramFeedViewHolder.revineLine.setVisibility(0);
     l = localVinePost.repost.userId;
     if (l != this.mAppController.getActiveId())
       break label254;
     paramFeedViewHolder.revineLine.setText(this.mContext.getString(2131624262));
   }
   label153: label254: SpannableStringBuilder localSpannableStringBuilder2;
   label406: VineEntity localVineEntity1;
   label584: RelativeLayout localRelativeLayout1;
   label667: RelativeLayout localRelativeLayout2;
   label979: label1110: boolean bool1;
   while (true)
     if (!TextUtils.isEmpty(localVinePost.description))
     {
       paramFeedViewHolder.description.setVisibility(0);
       if ((localVinePost.transientEntities == null) && (localVinePost.entities != null))
       {
         localVinePost.transientEntities = new ArrayList();
         Iterator localIterator2 = localVinePost.entities.iterator();
         while (true)
           if (localIterator2.hasNext())
           {
             VineEntity localVineEntity2 = (VineEntity)localIterator2.next();
             localVinePost.transientEntities.add(localVineEntity2.clone());
             continue;
             paramFeedViewHolder.videoImage.setVisibility(4);
             break;
             if (localVinePost.repost.username != null)
             {
               Context localContext = this.mContext;
               Object[] arrayOfObject2 = new Object[1];
               arrayOfObject2[0] = localVinePost.repost.username;
               String str3 = localContext.getString(2131624261, arrayOfObject2);
               SpannableStringBuilder localSpannableStringBuilder3 = new SpannableStringBuilder(str3);
               StyledClickableSpan localStyledClickableSpan4 = new StyledClickableSpan(8, Long.valueOf(l), this.mSpanClickListener);
               int j = str3.indexOf(localVinePost.repost.username);
               if (j < 0)
                 j = 0;
               int k = localSpannableStringBuilder3.length();
               Util.safeSetSpan(localSpannableStringBuilder3, localStyledClickableSpan4, j, k, 33);
               paramFeedViewHolder.revineLine.setMovementMethod(LinkMovementMethod.getInstance());
               paramFeedViewHolder.revineLine.setText(localSpannableStringBuilder3);
               break label153;
             }
             paramFeedViewHolder.revineLine.setVisibility(8);
             break label153;
             paramFeedViewHolder.revineContainer.setVisibility(8);
             break label153;
           }
       }
       ArrayList localArrayList = localVinePost.transientEntities;
       if (localArrayList != null)
       {
         paramFeedViewHolder.description.setMovementMethod(LinkMovementMethod.getInstance());
         if (localVinePost.descriptionSb == null)
         {
           localVinePost.descriptionSb = new SpannableStringBuilder(localVinePost.description);
           localSpannableStringBuilder2 = localVinePost.descriptionSb;
           try
           {
             Util.adjustEntities(localArrayList, localSpannableStringBuilder2, 0, false);
             Iterator localIterator1 = localArrayList.iterator();
             while (localIterator1.hasNext())
             {
               localVineEntity1 = (VineEntity)localIterator1.next();
               if (!localVineEntity1.isUserType())
                 break label1296;
               StyledClickableSpan localStyledClickableSpan2 = new StyledClickableSpan(1, Long.valueOf(localVineEntity1.id), this.mSpanClickListener);
               localStyledClickableSpan2.setColor(this.mVineGreen);
               Util.safeSetSpan(localSpannableStringBuilder2, localStyledClickableSpan2, localVineEntity1.start, localVineEntity1.end, 33);
             }
           }
           catch (Exception localException)
           {
             CrashUtil.logException(localException);
           }
         }
         else
         {
           paramFeedViewHolder.description.setText(localVinePost.descriptionSb);
           Resources localResources = this.mContext.getResources();
           if ((localVinePost.venueData == null) || (TextUtils.isEmpty(localVinePost.venueData.venueName)))
             break label1380;
           paramFeedViewHolder.location.setText(localVinePost.venueData.venueName.toUpperCase());
           Drawable localDrawable = localResources.getDrawable(VineVenue.iconMap.get(localVinePost.venueData.displayType));
           paramFeedViewHolder.locationIcon.setImageDrawable(localDrawable);
           paramFeedViewHolder.locationContainer.setVisibility(0);
           paramFeedViewHolder.listener.setPosition(i);
           if (paramFeedViewHolder.imageListener != null)
             paramFeedViewHolder.imageListener.setPosition(i);
           String str1 = localVinePost.username;
           if (str1 == null)
           {
             str1 = "";
             CrashUtil.logException(new VineException("Invalid user name for post " + localVinePost.userId));
           }
           SpannableStringBuilder localSpannableStringBuilder1 = new SpannableStringBuilder(str1);
           Util.safeSetSpan(localSpannableStringBuilder1, this.mBoldSpan, 0, str1.length(), 33);
           StyledClickableSpan localStyledClickableSpan1 = new StyledClickableSpan(1, Long.valueOf(localVinePost.userId), this.mSpanClickListener);
           localStyledClickableSpan1.setColor(localResources.getColor(2131296374));
           Util.safeSetSpan(localSpannableStringBuilder1, localStyledClickableSpan1, 0, str1.length(), 33);
           ImageView localImageView = paramFeedViewHolder.userImage;
           View.OnClickListener local4 = new View.OnClickListener()
           {
             public void onClick(View paramAnonymousView)
             {
               ProfileActivity.start(FeedAdapter.this.mContext, localVinePost.userId, FeedAdapter.this.mFollowEventSource);
             }
           };
           localImageView.setOnClickListener(local4);
           paramFeedViewHolder.username.setMovementMethod(LinkMovementMethod.getInstance());
           paramFeedViewHolder.username.setText(localSpannableStringBuilder1);
           paramFeedViewHolder.timestamp.setText(Util.getRelativeTimeString(localResources, localVinePost.created, false));
           ImageButton localImageButton = paramFeedViewHolder.comment;
           View.OnClickListener local5 = new View.OnClickListener()
           {
             public void onClick(View paramAnonymousView)
             {
               FeedAdapter.this.mContext.startActivity(new Intent(FeedAdapter.this.mContext, CommentsActivity.class).putExtra("post_id", localVinePost.postId).putExtra("post_author_id", localVinePost.userId).putExtra("hide_keyboard", false));
             }
           };
           localImageButton.setOnClickListener(local5);
           localRelativeLayout1 = paramFeedViewHolder.likersContainer;
           localRelativeLayout2 = paramFeedViewHolder.commentsContainer;
           RelativeLayout localRelativeLayout3 = paramFeedViewHolder.compactLikesCommentsContainer;
           if (this.mCompactLikesComments)
             break label1429;
           localRelativeLayout3.setVisibility(8);
           if ((localVinePost.likes.items == null) || (localVinePost.likes.items.isEmpty()))
             break label1392;
           localRelativeLayout1.setVisibility(0);
           setStyledLikers(paramFeedViewHolder, localVinePost.likesCount, localVinePost.likes);
           setRevinersCount(paramFeedViewHolder);
           if ((localVinePost.comments.items == null) || (localVinePost.comments.items.isEmpty()))
             break label1419;
           localRelativeLayout2.setVisibility(0);
           setStyledComments(paramFeedViewHolder, localVinePost.comments);
           if (localVinePost.commentsCount <= 5)
             break label1402;
           paramFeedViewHolder.commentType = 2;
           Object[] arrayOfObject1 = new Object[1];
           arrayOfObject1[0] = Util.numberFormat(localResources, -5 + localVinePost.commentsCount);
           String str2 = localResources.getString(2131624382, arrayOfObject1);
           paramFeedViewHolder.olderCommentsContainer.setVisibility(0);
           paramFeedViewHolder.olderComments.setText(str2);
           RelativeLayout localRelativeLayout4 = paramFeedViewHolder.olderCommentsContainer;
           View.OnClickListener local6 = new View.OnClickListener()
           {
             public void onClick(View paramAnonymousView)
             {
               FeedAdapter.this.mContext.startActivity(new Intent(FeedAdapter.this.mContext, CommentsActivity.class).putExtra("post_id", localVinePost.postId).putExtra("post_author_id", localVinePost.userId).putExtra("hide_keyboard", true));
             }
           };
           localRelativeLayout4.setOnClickListener(local6);
           if (!this.mLikeCache.contains(localVinePost.postId))
             break label1449;
           bool1 = this.mLikeCache.isLike(localVinePost.postId);
           localVinePost.setFlagLiked(bool1);
           label1143: if (!bool1)
             break label1488;
           paramFeedViewHolder.liked.setImageResource(2130837714);
         }
       }
     }
   while (true)
   {
     paramFeedViewHolder.liked.setTag(Long.valueOf(localVinePost.postId));
     paramFeedViewHolder.liked.setOnClickListener(this.mViewClickListener);
     paramFeedViewHolder.more.setTag(localVinePost);
     paramFeedViewHolder.more.setOnClickListener(this.mViewClickListener);
     if ((localVinePost.userId != this.mAppController.getActiveId()) && (!localVinePost.isPrivate()))
       break label1501;
     paramFeedViewHolder.revine.setVisibility(8);
     initVideoView(i, paramFeedViewHolder);
     if ((!this.mFirstPlayed) && (i == 0) && (!localVinePost.isExplicit()))
     {
       play(0);
       if ((SLog.sLogsOn) && (this.mStartLoadingTime > 0L))
         SLog.i("Time since started loading to request 0th video to play: {}ms", Long.valueOf(timeSinceStartLoadingTime()));
       this.mFirstPlayed = true;
     }
     return;
     label1296: if (!localVineEntity1.isTagType())
       break;
     StyledClickableSpan localStyledClickableSpan3 = new StyledClickableSpan(4, localVineEntity1.title, this.mSpanClickListener);
     localStyledClickableSpan3.setColor(this.mVineGreen);
     Util.safeSetSpan(localSpannableStringBuilder2, localStyledClickableSpan3, localVineEntity1.start, localVineEntity1.end, 33);
     break;
     paramFeedViewHolder.description.setText(localVinePost.description);
     break label584;
     paramFeedViewHolder.description.setVisibility(8);
     break label584;
     label1380: paramFeedViewHolder.locationContainer.setVisibility(8);
     break label667;
     label1392: localRelativeLayout1.setVisibility(8);
     break label979;
     label1402: paramFeedViewHolder.olderCommentsContainer.setVisibility(8);
     paramFeedViewHolder.commentType = 1;
     break label1110;
     label1419: localRelativeLayout2.setVisibility(8);
     break label1110;
     label1429: setStyledCompactLikesComments(paramFeedViewHolder, localVinePost.likesCount, localVinePost.commentsCount, localVinePost.revinersCount);
     break label1110;
     label1449: bool1 = localVinePost.isLiked();
     if (bool1)
     {
       this.mLikeCache.like(localVinePost.postId);
       break label1143;
     }
     this.mLikeCache.unlike(localVinePost.postId);
     break label1143;
     label1488: paramFeedViewHolder.liked.setImageResource(2130837647);
   }
   label1501: paramFeedViewHolder.revine.setVisibility(0);
   boolean bool2;
   if (this.mRevineCache.contains(localVinePost.postId))
   {
     bool2 = this.mRevineCache.isRevined(localVinePost.postId);
     localVinePost.setFlagRevined(bool2);
     label1542: if (!bool2)
       break label1652;
     paramFeedViewHolder.revine.setImageResource(2130837684);
   }
   while (true)
   {
     paramFeedViewHolder.revine.setTag(localVinePost);
     paramFeedViewHolder.revine.setOnClickListener(this.mViewClickListener);
     break;
     if ((localVinePost.myRepostId > 0L) || (localVinePost.isRevined()));
     for (bool2 = true; ; bool2 = false)
     {
       if (!bool2)
         break label1638;
       this.mRevineCache.putMyRepostId(localVinePost.postId, localVinePost.myRepostId);
       this.mRevineCache.revine(localVinePost.postId);
       break;
     }
     label1638: this.mRevineCache.unRevine(localVinePost.postId);
     break label1542;
     label1652: paramFeedViewHolder.revine.setImageResource(2130837682);
   }
 }