From 7e0b860816cdea00ad717ef294bbf7ed91393d4e Mon Sep 17 00:00:00 2001 From: Matthew Wong Date: Sun, 19 Jul 2015 19:27:36 -0400 Subject: Revert change that causes 'copy' to crash app --- app/src/main/java/com/zeapo/pwdstore/SshKeyGen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/zeapo/pwdstore/SshKeyGen.java b/app/src/main/java/com/zeapo/pwdstore/SshKeyGen.java index 52980e5f..11db75b4 100644 --- a/app/src/main/java/com/zeapo/pwdstore/SshKeyGen.java +++ b/app/src/main/java/com/zeapo/pwdstore/SshKeyGen.java @@ -123,7 +123,7 @@ public class SshKeyGen extends AppCompatActivity { b.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { - TextView textView = (TextView) v.findViewById(R.id.public_key); + TextView textView = (TextView) getDialog().findViewById(R.id.public_key); ClipboardManager clipboard = (ClipboardManager) getActivity().getSystemService(Context.CLIPBOARD_SERVICE); ClipData clip = ClipData.newPlainText("public key", textView.getText().toString()); clipboard.setPrimaryClip(clip); -- cgit v1.2.3