make the generate replace the password rather than append

This commit is contained in:
zeapo 2017-11-03 15:03:20 +01:00
parent 20468440d3
commit ae39246732

View file

@ -70,7 +70,7 @@ public class pwgenDialogFragment extends DialogFragment {
public void onClick(DialogInterface dialog, int which) {
EditText edit = (EditText) callingActivity.findViewById(R.id.crypto_password_edit);
TextView generate = (TextView) view.findViewById(R.id.passwordText);
edit.append(generate.getText());
edit.setText(generate.getText());
}
});