mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 13:57:47 +00:00
Revert change that causes 'copy' to crash app
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user