From d5ff048bd0d4e5339da355d5bd7bad5f5697587d Mon Sep 17 00:00:00 2001 From: J-Jamet Date: Sun, 10 May 2020 10:12:18 +0200 Subject: [PATCH] Remove allow_copy_password_key from application preferences --- .../keepass/settings/NestedAppSettingsFragment.kt | 7 ------- app/src/main/res/xml/preferences_application.xml | 5 ----- 2 files changed, 12 deletions(-) diff --git a/app/src/main/java/com/kunzisoft/keepass/settings/NestedAppSettingsFragment.kt b/app/src/main/java/com/kunzisoft/keepass/settings/NestedAppSettingsFragment.kt index 7f2242956..dc8e465e7 100644 --- a/app/src/main/java/com/kunzisoft/keepass/settings/NestedAppSettingsFragment.kt +++ b/app/src/main/java/com/kunzisoft/keepass/settings/NestedAppSettingsFragment.kt @@ -73,8 +73,6 @@ class NestedAppSettingsFragment : NestedSettingsFragment() { setPreferencesFromResource(R.xml.preferences_application, rootKey) activity?.let { activity -> - allowCopyPassword() - findPreference(getString(R.string.remember_database_locations_key))?.setOnPreferenceChangeListener { _, newValue -> if (!(newValue as Boolean)) { FileDatabaseHistoryAction.getInstance(activity.applicationContext).deleteAll() @@ -178,11 +176,6 @@ class NestedAppSettingsFragment : NestedSettingsFragment() { false } - // Present in two places - allowCopyPassword() - } - - private fun allowCopyPassword() { val copyPasswordPreference: SwitchPreference? = findPreference(getString(R.string.allow_copy_password_key)) copyPasswordPreference?.setOnPreferenceChangeListener { _, newValue -> if (newValue as Boolean && context != null) { diff --git a/app/src/main/res/xml/preferences_application.xml b/app/src/main/res/xml/preferences_application.xml index 84b284a51..ed4599483 100644 --- a/app/src/main/res/xml/preferences_application.xml +++ b/app/src/main/res/xml/preferences_application.xml @@ -114,11 +114,6 @@ android:title="@string/hide_password_title" android:summary="@string/hide_password_summary" android:defaultValue="@bool/hide_password_default"/> -