diff options
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/sshkeygen/SshKeygenTask.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/sshkeygen/SshKeygenTask.kt b/app/src/main/java/com/zeapo/pwdstore/sshkeygen/SshKeygenTask.kt index 03db7c83..0f28f7b4 100644 --- a/app/src/main/java/com/zeapo/pwdstore/sshkeygen/SshKeygenTask.kt +++ b/app/src/main/java/com/zeapo/pwdstore/sshkeygen/SshKeygenTask.kt @@ -64,7 +64,7 @@ class KeyGenerateTask(activity: AppCompatActivity) : AsyncTask<String?, Void?, E editor.putBoolean("use_generated_key", true) editor.apply() } else { - MaterialAlertDialogBuilder(weakReference.get()) + MaterialAlertDialogBuilder(activity) .setTitle(activity.getString(R.string.error_generate_ssh_key)) .setMessage(activity.getString(R.string.ssh_key_error_dialog_text) + e.message) .setPositiveButton(activity.getString(R.string.dialog_ok), null) |