Program: 13668
Project: 13668
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);
  mUpdateTextView=findViewById(R.id.plugin_btn_update);
  mUpdateProgressBar=findViewById(R.id.plugin_update_progress_bar);
  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);
  mDescriptionTextView=findViewById(R.id.plugin_description);
  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);
    }
  }
);
  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);
      }
    }
  }
);
  mUpdateTextView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      dispatchUpdatePluginAction();
    }
  }
);
  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){
      }
    }
);
  }
 else {
    settingsView.setVisibility(View.GONE);
  }
  findViewById(R.id.plugin_wp_org_page).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      ActivityLauncher.openUrlExternal(PluginDetailActivity.this,getWpOrgPluginUrl());
    }
  }
);
  findViewById(R.id.plugin_home_page).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      ActivityLauncher.openUrlExternal(PluginDetailActivity.this,mSitePlugin.getPluginUrl());
    }
  }
);
  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);
  mUpdateTextView=findViewById(R.id.plugin_btn_update);
  mUpdateProgressBar=findViewById(R.id.plugin_update_progress_bar);
  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);
  mDescriptionTextView=findViewById(R.id.plugin_description);
  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);
    }
  }
);
  mVersionTopTextView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      showPluginInfoPopup();
    }
  }
);
  if (!canPluginBeDisabledOrRemoved()) {
    mSwitchActive.setVisibility(View.GONE);
  }
 else {
    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);
      }
    }
  }
);
  mUpdateTextView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      dispatchUpdatePluginAction();
    }
  }
);
  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){
      }
    }
);
  }
 else {
    settingsView.setVisibility(View.GONE);
  }
  findViewById(R.id.plugin_wp_org_page).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      ActivityLauncher.openUrlExternal(PluginDetailActivity.this,getWpOrgPluginUrl());
    }
  }
);
  findViewById(R.id.plugin_home_page).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      ActivityLauncher.openUrlExternal(PluginDetailActivity.this,mSitePlugin.getPluginUrl());
    }
  }
);
  refreshViews();
}