Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Update app/src/main/java/app/passwordstore/util/settings/PreferenceKe…
Browse files Browse the repository at this point in the history
…ys.kt

Co-authored-by: Harsh Shandilya <[email protected]>
Signed-off-by: Alexander Grahn <[email protected]>
  • Loading branch information
agrahn and msfjarvis committed Aug 14, 2024
1 parent cb77eb6 commit ca06166
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ class GeneralSettings(private val activity: FragmentActivity) : SettingsProvider
titleRes = R.string.pref_app_theme_title
}

val values =
activity.resources.getStringArray(R.array.directory_structure_values)
val titles =
activity.resources.getStringArray(R.array.directory_structure_entries)
val values = activity.resources.getStringArray(R.array.directory_structure_values)
val titles = activity.resources.getStringArray(R.array.directory_structure_entries)
val items = values.zip(titles).map { SelectionItem(it.first, it.second, null) }
singleChoice(PreferenceKeys.DIRECTORY_STRUCTURE, items) {
initialSelection = DirectoryStructure.DEFAULT.value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ object PreferenceKeys {
const val LENGTH = "length"
const val OREO_AUTOFILL_CUSTOM_PUBLIC_SUFFIXES = "oreo_autofill_custom_public_suffixes"
const val OREO_AUTOFILL_DEFAULT_USERNAME = "oreo_autofill_default_username"
const val DIRECTORY_STRUCTURE = "directory_structure"
const val DIRECTORY_STRUCTURE = "oreo_autofill_directory_structure"
const val PREF_KEY_PWGEN_TYPE = "pref_key_pwgen_type"
const val REPOSITORY_INITIALIZED = "repository_initialized"
const val REPO_CHANGED = "repo_changed"
Expand Down

0 comments on commit ca06166

Please sign in to comment.