mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2025-09-07 16:09:38 +02:00
Append password from dialog, not a newly generated one
This commit is contained in:
parent
6c8fe2ed45
commit
9b61c69913
|
@ -61,9 +61,9 @@ public class pwgenDialogFragment extends DialogFragment {
|
|||
builder.setPositiveButton("OK", new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
setPreferences();
|
||||
TextView textView = (TextView) getActivity().findViewById(R.id.crypto_password_edit);
|
||||
textView.append(pwgen.generate(getActivity().getApplicationContext()).get(0));
|
||||
TextView edit = (TextView) getActivity().findViewById(R.id.crypto_password_edit);
|
||||
TextView generate = (TextView) getDialog().findViewById(R.id.passwordText);
|
||||
edit.append(generate.getText());
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue