summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Wong <wongma@protonmail.ch>2015-07-19 19:27:36 -0400
committerMatthew Wong <wongma@protonmail.ch>2015-07-19 19:27:36 -0400
commit7e0b860816cdea00ad717ef294bbf7ed91393d4e (patch)
treeafd219931d870862cb1896758711e221abac2b9e
parentc49c2cd5ab6d358151ddfd2a09c871ecdf1fd49e (diff)
Revert change that causes 'copy' to crash appv1.2.0.25
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/SshKeyGen.java2
1 files changed, 1 insertions, 1 deletions
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);