fix a typo, the generate edit text is in the dialog not in the fragment

This commit is contained in:
Mohamed Zenadi 2015-07-18 20:18:04 +02:00
parent 5cd34a3427
commit 608f61b605

View file

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