Program: 13566
Project: 13566
Buggy source:
private void setupViews(){
  mContainer=findViewById(R.id.plugin_detail_container);
  mTitleTextView=findViewById(R.id.text_title);
  mByLineTextView=findViewById(R.id.text_byline);
  mVersionTopTextView=findViewById(R.id.plugin_version_top);
  mVersionBottomTextView=findViewById(R.id.plugin_version_bottom);
  mUpdateButton=findViewById(R.id.plugin_btn_update);
  mInstallButton=findViewById(R.id.plugin_btn_install);
  mSwitchActive=findViewById(R.id.plugin_state_active);
  mSwitchAutoupdates=findViewById(R.id.plugin_state_autoupdates);
  mImageBanner=findViewById(R.id.image_banner);
  mImageIcon=findViewById(R.id.image_icon);
  Drawable rightDrawable=AppCompatResources.getDrawable(this,R.drawable.ic_info_outline_grey_dark_18dp);
  mVersionTopTextView.setCompoundDrawablesWithIntrinsicBounds(null,null,rightDrawable,null);
  mDescriptionTextView=findViewById(R.id.plugin_description_text);
  mDescriptionChevron=findViewById(R.id.plugin_description_chevron);
  findViewById(R.id.plugin_description_container).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      toggleText(mDescriptionTextView,mDescriptionChevron);
    }
  }
);
  mInstallationTextView=findViewById(R.id.plugin_installation_text);
  mInstallationChevron=findViewById(R.id.plugin_installation_chevron);
  findViewById(R.id.plugin_installation_container).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      toggleText(mInstallationTextView,mInstallationChevron);
    }
  }
);
  mWhatsNewTextView=findViewById(R.id.plugin_whatsnew_text);
  mWhatsNewChevron=findViewById(R.id.plugin_whatsnew_chevron);
  findViewById(R.id.plugin_whatsnew_container).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      toggleText(mWhatsNewTextView,mWhatsNewChevron);
    }
  }
);
  if (getSitePlugin() == null) {
    toggleText(mDescriptionTextView,mDescriptionChevron);
  }
 else   if (PluginUtils.isUpdateAvailable(getSitePlugin(),getWPOrgPlugin())) {
    toggleText(mWhatsNewTextView,mWhatsNewChevron);
  }
  mFaqTextView=findViewById(R.id.plugin_faq_text);
  mFaqChevron=findViewById(R.id.plugin_faq_chevron);
  findViewById(R.id.plugin_faq_container).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      toggleText(mFaqTextView,mFaqChevron);
    }
  }
);
  mVersionTopTextView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      showPluginInfoPopup();
    }
  }
);
  mSwitchActive.setOnCheckedChangeListener(new OnCheckedChangeListener(){
    @Override public void onCheckedChanged(    CompoundButton compoundButton,    boolean b){
      if (compoundButton.isPressed()) {
        mIsActive=b;
        dispatchConfigurePluginAction(false);
      }
    }
  }
);
  mSwitchAutoupdates.setOnCheckedChangeListener(new OnCheckedChangeListener(){
    @Override public void onCheckedChanged(    CompoundButton compoundButton,    boolean b){
      if (compoundButton.isPressed()) {
        mIsAutoUpdateEnabled=b;
        dispatchConfigurePluginAction(false);
      }
    }
  }
);
  View settingsView=findViewById(R.id.plugin_settings_page);
  if (canShowSettings()) {
    settingsView.setVisibility(View.VISIBLE);
    settingsView.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        openUrl(getSitePlugin().getSettingsUrl());
      }
    }
);
  }
 else {
    settingsView.setVisibility(View.GONE);
  }
  findViewById(R.id.plugin_wp_org_page).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      openUrl(getWpOrgPluginUrl());
    }
  }
);
  findViewById(R.id.plugin_home_page).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      String url=null;
      if (getSitePlugin() != null) {
        url=getSitePlugin().getPluginUrl();
      }
 else       if (getWPOrgPlugin() != null) {
        url=getWPOrgPlugin().getHomepageUrl();
      }
      if (TextUtils.isEmpty(url)) {
        openUrl(url);
      }
    }
  }
);
  findViewById(R.id.read_reviews_container).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      openUrl(getWpOrgReviewsUrl());
    }
  }
);
  int toolbarHeight=DisplayUtils.getActionBarHeight(this);
  ImageView imgScrim=findViewById(R.id.image_gradient_scrim);
  imgScrim.getLayoutParams().height=toolbarHeight * 2;
  refreshViews();
}

Fixed version (ground truth):
private void setupViews(){
  mContainer=findViewById(R.id.plugin_detail_container);
  mTitleTextView=findViewById(R.id.text_title);
  mByLineTextView=findViewById(R.id.text_byline);
  mVersionTopTextView=findViewById(R.id.plugin_version_top);
  mVersionBottomTextView=findViewById(R.id.plugin_version_bottom);
  mUpdateButton=findViewById(R.id.plugin_btn_update);
  mInstallButton=findViewById(R.id.plugin_btn_install);
  mSwitchActive=findViewById(R.id.plugin_state_active);
  mSwitchAutoupdates=findViewById(R.id.plugin_state_autoupdates);
  mImageBanner=findViewById(R.id.image_banner);
  mImageIcon=findViewById(R.id.image_icon);
  Drawable rightDrawable=AppCompatResources.getDrawable(this,R.drawable.ic_info_outline_grey_dark_18dp);
  mVersionTopTextView.setCompoundDrawablesWithIntrinsicBounds(null,null,rightDrawable,null);
  mDescriptionTextView=findViewById(R.id.plugin_description_text);
  mDescriptionChevron=findViewById(R.id.plugin_description_chevron);
  findViewById(R.id.plugin_description_container).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      toggleText(mDescriptionTextView,mDescriptionChevron);
    }
  }
);
  mInstallationTextView=findViewById(R.id.plugin_installation_text);
  mInstallationChevron=findViewById(R.id.plugin_installation_chevron);
  findViewById(R.id.plugin_installation_container).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      toggleText(mInstallationTextView,mInstallationChevron);
    }
  }
);
  mWhatsNewTextView=findViewById(R.id.plugin_whatsnew_text);
  mWhatsNewChevron=findViewById(R.id.plugin_whatsnew_chevron);
  findViewById(R.id.plugin_whatsnew_container).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      toggleText(mWhatsNewTextView,mWhatsNewChevron);
    }
  }
);
  if (getSitePlugin() == null) {
    toggleText(mDescriptionTextView,mDescriptionChevron);
  }
 else   if (PluginUtils.isUpdateAvailable(getSitePlugin(),getWPOrgPlugin())) {
    toggleText(mWhatsNewTextView,mWhatsNewChevron);
  }
  mFaqTextView=findViewById(R.id.plugin_faq_text);
  mFaqChevron=findViewById(R.id.plugin_faq_chevron);
  findViewById(R.id.plugin_faq_container).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      toggleText(mFaqTextView,mFaqChevron);
    }
  }
);
  mVersionTopTextView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      showPluginInfoPopup();
    }
  }
);
  mSwitchActive.setOnCheckedChangeListener(new OnCheckedChangeListener(){
    @Override public void onCheckedChanged(    CompoundButton compoundButton,    boolean b){
      if (compoundButton.isPressed()) {
        mIsActive=b;
        dispatchConfigurePluginAction(false);
      }
    }
  }
);
  mSwitchAutoupdates.setOnCheckedChangeListener(new OnCheckedChangeListener(){
    @Override public void onCheckedChanged(    CompoundButton compoundButton,    boolean b){
      if (compoundButton.isPressed()) {
        mIsAutoUpdateEnabled=b;
        dispatchConfigurePluginAction(false);
      }
    }
  }
);
  View settingsView=findViewById(R.id.plugin_settings_page);
  if (canShowSettings()) {
    settingsView.setVisibility(View.VISIBLE);
    settingsView.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        openUrl(getSitePlugin().getSettingsUrl());
      }
    }
);
  }
 else {
    settingsView.setVisibility(View.GONE);
  }
  findViewById(R.id.plugin_wp_org_page).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      openUrl(getWpOrgPluginUrl());
    }
  }
);
  findViewById(R.id.plugin_home_page).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      String url=null;
      if (getSitePlugin() != null) {
        url=getSitePlugin().getPluginUrl();
      }
 else       if (getWPOrgPlugin() != null) {
        url=getWPOrgPlugin().getHomepageUrl();
      }
      openUrl(url);
    }
  }
);
  findViewById(R.id.read_reviews_container).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      openUrl(getWpOrgReviewsUrl());
    }
  }
);
  int toolbarHeight=DisplayUtils.getActionBarHeight(this);
  ImageView imgScrim=findViewById(R.id.image_gradient_scrim);
  imgScrim.getLayoutParams().height=toolbarHeight * 2;
  refreshViews();
}