Program: 13575
Project: 13575
Buggy source:
@Override protected void onBindDialogView(final View view){
  super.onBindDialogView(view);
  if (view == null)   return;
  EditText editText=getEditText();
  ViewParent oldParent=editText.getParent();
  if (oldParent != view) {
    if (oldParent != null && oldParent instanceof ViewGroup) {
      ViewGroup groupParent=(ViewGroup)oldParent;
      groupParent.removeView(editText);
      groupParent.setPadding(groupParent.getPaddingLeft(),0,groupParent.getPaddingRight(),groupParent.getPaddingBottom());
    }
    onAddEditTextToDialogView(view,editText);
  }
  WPPrefUtils.layoutAsInput(editText);
  editText.setSelection(editText.getText().length());
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
    editText.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_START);
  }
  TextView message=(TextView)view.findViewById(android.R.id.message);
  WPPrefUtils.layoutAsDialogMessage(message);
  ViewGroup.MarginLayoutParams layoutParams=(ViewGroup.MarginLayoutParams)message.getLayoutParams();
  int leftMargin=0;
  int bottomMargin=view.getResources().getDimensionPixelSize(R.dimen.margin_small);
  if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP_MR1) {
    leftMargin=view.getResources().getDimensionPixelSize(R.dimen.margin_small);
  }
  if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
    leftMargin=view.getResources().getDimensionPixelSize(R.dimen.margin_large);
  }
  layoutParams.setMargins(leftMargin,layoutParams.topMargin,layoutParams.rightMargin,bottomMargin);
  message.setLayoutParams(layoutParams);
}

Fixed version (ground truth):
@Override protected void onBindDialogView(final View view){
  super.onBindDialogView(view);
  if (view == null)   return;
  EditText editText=getEditText();
  ViewParent oldParent=editText.getParent();
  if (oldParent != view) {
    if (oldParent != null && oldParent instanceof ViewGroup) {
      ViewGroup groupParent=(ViewGroup)oldParent;
      groupParent.removeView(editText);
      groupParent.setPadding(groupParent.getPaddingLeft(),0,groupParent.getPaddingRight(),groupParent.getPaddingBottom());
    }
    onAddEditTextToDialogView(view,editText);
  }
  WPPrefUtils.layoutAsInput(editText);
  editText.setSelection(editText.getText().length());
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
    editText.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_START);
  }
  TextView message=(TextView)view.findViewById(android.R.id.message);
  WPPrefUtils.layoutAsDialogMessage(message);
  ViewGroup.MarginLayoutParams layoutParams=(ViewGroup.MarginLayoutParams)message.getLayoutParams();
  int leftMargin=0;
  int bottomMargin=view.getResources().getDimensionPixelSize(R.dimen.margin_small);
  if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP_MR1) {
    leftMargin=view.getResources().getDimensionPixelSize(R.dimen.margin_small);
  }
  if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
    leftMargin=view.getResources().getDimensionPixelSize(R.dimen.margin_large);
  }
  layoutParams.setMargins(0,layoutParams.topMargin,0,bottomMargin);
  MarginLayoutParamsCompat.setMarginStart(layoutParams,leftMargin);
  MarginLayoutParamsCompat.setMarginEnd(layoutParams,layoutParams.rightMargin);
  message.setLayoutParams(layoutParams);
}