Program: 17502
Project: 17502
Buggy source:
@Override public Dialog onCreateDialog(Bundle savedInstanceState){
  RequestToken.getRequestToken(new DefaultCallback<RequestToken>(getActivity()){
    @Override public void onModel(    RequestToken requestToken){
      Session.getInstance().setRequestToken(requestToken);
      if (requestTokenCallback != null)       requestTokenCallback.run();
    }
  }
);
  AlertDialog.Builder builder=new AlertDialog.Builder(getActivity());
  builder.setTitle(R.string.uv_signin_dialog_title);
  LayoutInflater inflater=getActivity().getLayoutInflater();
  View view=inflater.inflate(R.layout.uv_signin_layout,null);
  emailField=(EditText)view.findViewById(R.id.uv_signin_email);
  nameField=(EditText)view.findViewById(R.id.uv_signin_name);
  passwordField=(EditText)view.findViewById(R.id.uv_signin_password);
  passwordFields=view.findViewById(R.id.uv_signin_password_fields);
  forgotPassword=(Button)view.findViewById(R.id.uv_signin_forgot_password);
  passwordFields.setVisibility(View.GONE);
  emailField.setText(email);
  nameField.setText(name);
  if (email != null)   discoverUser();
  forgotPassword.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      sendForgotPassword();
    }
  }
);
  emailField.setOnFocusChangeListener(new View.OnFocusChangeListener(){
    @Override public void onFocusChange(    View v,    boolean hasFocus){
      if (v == emailField && hasFocus == false) {
        discoverUser();
      }
    }
  }
);
  builder.setView(view);
  builder.setNegativeButton(android.R.string.cancel,null);
  builder.setPositiveButton(R.string.uv_signin_dialog_ok,null);
  final AlertDialog dialog=builder.create();
  dialog.setOnShowListener(new DialogInterface.OnShowListener(){
    @Override public void onShow(    DialogInterface di){
      Button positiveButton=dialog.getButton(DialogInterface.BUTTON_POSITIVE);
      positiveButton.setOnClickListener(new View.OnClickListener(){
        @Override public void onClick(        View v){
          signIn();
        }
      }
);
      InputMethodManager imm=(InputMethodManager)getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
      imm.showSoftInput(emailField,InputMethodManager.SHOW_IMPLICIT);
    }
  }
);
  dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
  return dialog;
}

Fixed version (ground truth):
@Override public Dialog onCreateDialog(Bundle savedInstanceState){
  RequestToken.getRequestToken(new DefaultCallback<RequestToken>(getActivity()){
    @Override public void onModel(    RequestToken requestToken){
      Session.getInstance().setRequestToken(requestToken);
      if (requestTokenCallback != null)       requestTokenCallback.run();
    }
  }
);
  AlertDialog.Builder builder=new AlertDialog.Builder(getActivity());
  if (!Utils.isDarkTheme(getActivity())) {
    builder.setInverseBackgroundForced(true);
  }
  builder.setTitle(R.string.uv_signin_dialog_title);
  LayoutInflater inflater=getActivity().getLayoutInflater();
  View view=inflater.inflate(R.layout.uv_signin_layout,null);
  emailField=(EditText)view.findViewById(R.id.uv_signin_email);
  nameField=(EditText)view.findViewById(R.id.uv_signin_name);
  passwordField=(EditText)view.findViewById(R.id.uv_signin_password);
  passwordFields=view.findViewById(R.id.uv_signin_password_fields);
  forgotPassword=(Button)view.findViewById(R.id.uv_signin_forgot_password);
  passwordFields.setVisibility(View.GONE);
  emailField.setText(email);
  nameField.setText(name);
  if (email != null)   discoverUser();
  forgotPassword.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      sendForgotPassword();
    }
  }
);
  emailField.setOnFocusChangeListener(new View.OnFocusChangeListener(){
    @Override public void onFocusChange(    View v,    boolean hasFocus){
      if (v == emailField && hasFocus == false) {
        discoverUser();
      }
    }
  }
);
  builder.setView(view);
  builder.setNegativeButton(android.R.string.cancel,null);
  builder.setPositiveButton(R.string.uv_signin_dialog_ok,null);
  final AlertDialog dialog=builder.create();
  dialog.setOnShowListener(new DialogInterface.OnShowListener(){
    @Override public void onShow(    DialogInterface di){
      Button positiveButton=dialog.getButton(DialogInterface.BUTTON_POSITIVE);
      positiveButton.setOnClickListener(new View.OnClickListener(){
        @Override public void onClick(        View v){
          signIn();
        }
      }
);
      InputMethodManager imm=(InputMethodManager)getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
      imm.showSoftInput(emailField,InputMethodManager.SHOW_IMPLICIT);
    }
  }
);
  dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
  return dialog;
}