Program: 13551
Project: 13551
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);
      ViewCompat.setPaddingRelative(groupParent,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);
}

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);
      ViewCompat.setPaddingRelative(groupParent,ViewCompat.getPaddingStart(groupParent),0,ViewCompat.getPaddingEnd(groupParent),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);
}