diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2020-04-18 17:50:19 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-04-18 23:52:15 +0530 |
commit | 5d884a8a74d0b51c13cdcf4bf56101c8ff9c6b30 (patch) | |
tree | 465a99c412807beb76a0828baa52f004efba8a7d /app/src/main/java/com | |
parent | 15a877fdec9ce8317d345aa3b27035e8d48a3f68 (diff) |
SshKeygenTask: fix build error
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/java/com')
-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) |