Program: 13380
Project: 13380
Buggy source:
private void refreshViews(){
  View scrollView=findViewById(R.id.scroll_view);
  if (scrollView.getVisibility() != View.VISIBLE) {
    AniUtils.fadeIn(scrollView,AniUtils.Duration.MEDIUM);
  }
  mTitleTextView.setText(mPlugin.getDisplayName());
  mImageBanner.setImageUrl(mPlugin.getBanner(),PHOTO);
  mImageIcon.setImageUrl(mPlugin.getIcon(),PLUGIN_ICON);
  if (mPlugin.doesHaveWPOrgPluginDetails()) {
    mWPOrgPluginDetailsContainer.setVisibility(View.VISIBLE);
    setCollapsibleHtmlText(mDescriptionTextView,mPlugin.getDescriptionAsHtml());
    setCollapsibleHtmlText(mInstallationTextView,mPlugin.getInstallationInstructionsAsHtml());
    setCollapsibleHtmlText(mWhatsNewTextView,mPlugin.getWhatsNewAsHtml());
    setCollapsibleHtmlText(mFaqTextView,mPlugin.getFaqAsHtml());
  }
 else {
    mWPOrgPluginDetailsContainer.setVisibility(View.GONE);
  }
  mByLineTextView.setMovementMethod(WPLinkMovementMethod.getInstance());
  if (!TextUtils.isEmpty(mPlugin.getAuthorAsHtml())) {
    mByLineTextView.setText(Html.fromHtml(mPlugin.getAuthorAsHtml()));
  }
 else {
    String authorName=mPlugin.getAuthorName();
    String authorUrl=mPlugin.getAuthorUrl();
    if (TextUtils.isEmpty(authorUrl)) {
      mByLineTextView.setText(String.format(getString(R.string.plugin_byline),authorName));
    }
 else {
      String authorLink="String_Node_Str" + authorUrl + "String_Node_Str"+ authorName+ "String_Node_Str";
      String byline=String.format(getString(R.string.plugin_byline),authorLink);
      mByLineTextView.setMovementMethod(WPLinkMovementMethod.getInstance());
      mByLineTextView.setText(Html.fromHtml(byline));
    }
  }
  findViewById(R.id.plugin_card_site).setVisibility(mPlugin.isInstalled() ? View.VISIBLE : View.GONE);
  findViewById(R.id.plugin_state_active_container).setVisibility(canPluginBeDisabledOrRemoved() ? View.VISIBLE : View.GONE);
  mSwitchActive.setChecked(mIsActive);
  mSwitchAutoupdates.setChecked(mIsAutoUpdateEnabled);
  refreshPluginVersionViews();
  refreshRatingsViews();
}

Fixed version (ground truth):
private void refreshViews(){
  View scrollView=findViewById(R.id.scroll_view);
  if (scrollView.getVisibility() != View.VISIBLE) {
    AniUtils.fadeIn(scrollView,AniUtils.Duration.MEDIUM);
  }
  mTitleTextView.setText(mPlugin.getDisplayName());
  mImageBanner.setImageUrl(mPlugin.getBanner(),PHOTO);
  mImageIcon.setImageUrl(mPlugin.getIcon(),PLUGIN_ICON);
  if (mPlugin.doesHaveWPOrgPluginDetails()) {
    mWPOrgPluginDetailsContainer.setVisibility(View.VISIBLE);
    setCollapsibleHtmlText(mDescriptionTextView,mPlugin.getDescriptionAsHtml());
    setCollapsibleHtmlText(mInstallationTextView,mPlugin.getInstallationInstructionsAsHtml());
    setCollapsibleHtmlText(mWhatsNewTextView,mPlugin.getWhatsNewAsHtml());
    setCollapsibleHtmlText(mFaqTextView,mPlugin.getFaqAsHtml());
  }
 else {
    mWPOrgPluginDetailsContainer.setVisibility(View.GONE);
  }
  mByLineTextView.setMovementMethod(WPLinkMovementMethod.getInstance());
  if (!TextUtils.isEmpty(mPlugin.getAuthorAsHtml())) {
    mByLineTextView.setText(Html.fromHtml(mPlugin.getAuthorAsHtml()));
  }
 else {
    String authorName=mPlugin.getAuthorName();
    String authorUrl=mPlugin.getAuthorUrl();
    if (TextUtils.isEmpty(authorUrl)) {
      mByLineTextView.setText(String.format(getString(R.string.plugin_byline),authorName));
    }
 else {
      String authorLink="String_Node_Str" + authorUrl + "String_Node_Str"+ authorName+ "String_Node_Str";
      String byline=String.format(getString(R.string.plugin_byline),authorLink);
      mByLineTextView.setMovementMethod(WPLinkMovementMethod.getInstance());
      mByLineTextView.setText(Html.fromHtml(byline));
    }
  }
  findViewById(R.id.plugin_card_site).setVisibility(mPlugin.isInstalled() && isNotAutoManaged() ? View.VISIBLE : View.GONE);
  findViewById(R.id.plugin_state_active_container).setVisibility(canPluginBeDisabledOrRemoved() ? View.VISIBLE : View.GONE);
  mSwitchActive.setChecked(mIsActive);
  mSwitchAutoupdates.setChecked(mIsAutoUpdateEnabled);
  refreshPluginVersionViews();
  refreshRatingsViews();
}