mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 13:57:47 +00:00
feat: switch default password generator to Diceware
This commit is contained in:
2
.idea/kotlinc.xml
generated
2
.idea/kotlinc.xml
generated
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="KotlinJpsPluginSettings">
|
<component name="KotlinJpsPluginSettings">
|
||||||
<option name="version" value="1.8.20" />
|
<option name="version" value="1.8.21" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
@@ -285,7 +285,7 @@ class PasswordCreationActivity : BasePgpActivity() {
|
|||||||
binding.password.setText(bundle.getString(RESULT))
|
binding.password.setText(bundle.getString(RESULT))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
when (settings.getString(PreferenceKeys.PREF_KEY_PWGEN_TYPE) ?: KEY_PWGEN_TYPE_CLASSIC) {
|
when (settings.getString(PreferenceKeys.PREF_KEY_PWGEN_TYPE) ?: KEY_PWGEN_TYPE_DICEWARE) {
|
||||||
KEY_PWGEN_TYPE_CLASSIC ->
|
KEY_PWGEN_TYPE_CLASSIC ->
|
||||||
PasswordGeneratorDialogFragment().show(supportFragmentManager, "generator")
|
PasswordGeneratorDialogFragment().show(supportFragmentManager, "generator")
|
||||||
KEY_PWGEN_TYPE_DICEWARE ->
|
KEY_PWGEN_TYPE_DICEWARE ->
|
||||||
|
@@ -11,7 +11,6 @@ import app.passwordstore.R
|
|||||||
import app.passwordstore.util.settings.PreferenceKeys
|
import app.passwordstore.util.settings.PreferenceKeys
|
||||||
import de.Maxr1998.modernpreferences.PreferenceScreen
|
import de.Maxr1998.modernpreferences.PreferenceScreen
|
||||||
import de.Maxr1998.modernpreferences.helpers.editText
|
import de.Maxr1998.modernpreferences.helpers.editText
|
||||||
import de.Maxr1998.modernpreferences.helpers.onSelectionChange
|
|
||||||
import de.Maxr1998.modernpreferences.helpers.singleChoice
|
import de.Maxr1998.modernpreferences.helpers.singleChoice
|
||||||
import de.Maxr1998.modernpreferences.helpers.switch
|
import de.Maxr1998.modernpreferences.helpers.switch
|
||||||
import de.Maxr1998.modernpreferences.preferences.choice.SelectionItem
|
import de.Maxr1998.modernpreferences.preferences.choice.SelectionItem
|
||||||
@@ -27,9 +26,8 @@ class PasswordSettings(private val activity: FragmentActivity) : SettingsProvide
|
|||||||
PreferenceKeys.PREF_KEY_PWGEN_TYPE,
|
PreferenceKeys.PREF_KEY_PWGEN_TYPE,
|
||||||
items,
|
items,
|
||||||
) {
|
) {
|
||||||
initialSelection = "classic"
|
initialSelection = "diceware"
|
||||||
titleRes = R.string.pref_password_generator_type_title
|
titleRes = R.string.pref_password_generator_type_title
|
||||||
onSelectionChange { true }
|
|
||||||
}
|
}
|
||||||
editText(PreferenceKeys.GENERAL_SHOW_TIME) {
|
editText(PreferenceKeys.GENERAL_SHOW_TIME) {
|
||||||
titleRes = R.string.pref_clipboard_timeout_title
|
titleRes = R.string.pref_clipboard_timeout_title
|
||||||
|
Reference in New Issue
Block a user