From eed0b5996446f198e80c9ae93936baf0c69315de Mon Sep 17 00:00:00 2001 From: Mohamed Zenadi Date: Sat, 29 Jul 2017 21:45:06 +0100 Subject: Call the new pgp activity --- app/src/main/java/com/zeapo/pwdstore/UserPreference.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/com/zeapo/pwdstore/UserPreference.kt b/app/src/main/java/com/zeapo/pwdstore/UserPreference.kt index b9bf6ac9..099f004c 100644 --- a/app/src/main/java/com/zeapo/pwdstore/UserPreference.kt +++ b/app/src/main/java/com/zeapo/pwdstore/UserPreference.kt @@ -27,7 +27,7 @@ import android.widget.TextView import android.widget.Toast import com.nononsenseapps.filepicker.FilePickerActivity import com.zeapo.pwdstore.autofill.AutofillPreferenceActivity -import com.zeapo.pwdstore.crypto.PgpHandler +import com.zeapo.pwdstore.crypto.PgpActivity import com.zeapo.pwdstore.git.GitActivity import com.zeapo.pwdstore.utils.PasswordRepository import org.apache.commons.io.FileUtils @@ -52,8 +52,8 @@ class UserPreference : AppCompatActivity() { findPreference("app_version").summary = "Version: ${BuildConfig.VERSION_NAME}" findPreference("openpgp_key_id_pref").onPreferenceClickListener = Preference.OnPreferenceClickListener { - val intent = Intent(callingActivity, PgpHandler::class.java) - intent.putExtra("Operation", "GET_KEY_ID") + val intent = Intent(callingActivity, PgpActivity::class.java) + intent.putExtra("OPERATION", "GET_KEY_ID") startActivityForResult(intent, IMPORT_PGP_KEY) true } -- cgit v1.2.3