mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 22:05:19 +00:00
feat: add a no-op ASCII armor toggle
This commit is contained in:
@@ -9,9 +9,11 @@ import androidx.fragment.app.FragmentActivity
|
||||
import app.passwordstore.ui.pgp.PGPKeyImportActivity
|
||||
import app.passwordstore.ui.pgp.PGPKeyListActivity
|
||||
import app.passwordstore.util.extensions.launchActivity
|
||||
import app.passwordstore.util.settings.PreferenceKeys
|
||||
import de.Maxr1998.modernpreferences.PreferenceScreen
|
||||
import de.Maxr1998.modernpreferences.helpers.onClick
|
||||
import de.Maxr1998.modernpreferences.helpers.pref
|
||||
import de.Maxr1998.modernpreferences.helpers.switch
|
||||
|
||||
class PGPSettings(private val activity: FragmentActivity) : SettingsProvider {
|
||||
|
||||
@@ -33,6 +35,10 @@ class PGPSettings(private val activity: FragmentActivity) : SettingsProvider {
|
||||
false
|
||||
}
|
||||
}
|
||||
switch(PreferenceKeys.ASCII_ARMOR) {
|
||||
title = "Encrypt in ASCII armor mode"
|
||||
persistent = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -85,4 +85,5 @@ object PreferenceKeys {
|
||||
const val DICEWARE_SEPARATOR = "diceware_separator"
|
||||
const val DICEWARE_LENGTH = "diceware_length"
|
||||
const val DISABLE_SYNC_ACTION = "disable_sync_action"
|
||||
const val ASCII_ARMOR = "pgpainless_ascii_armor"
|
||||
}
|
||||
|
Reference in New Issue
Block a user