From ae3924673245f0d40d41ec313f2146c0f3943ef0 Mon Sep 17 00:00:00 2001 From: zeapo Date: Fri, 3 Nov 2017 15:03:20 +0100 Subject: make the generate replace the password rather than append --- app/src/main/java/com/zeapo/pwdstore/pwgenDialogFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java/com') diff --git a/app/src/main/java/com/zeapo/pwdstore/pwgenDialogFragment.java b/app/src/main/java/com/zeapo/pwdstore/pwgenDialogFragment.java index 30b868f0..141aaa76 100644 --- a/app/src/main/java/com/zeapo/pwdstore/pwgenDialogFragment.java +++ b/app/src/main/java/com/zeapo/pwdstore/pwgenDialogFragment.java @@ -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()); } }); -- cgit v1.2.3