mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-25 11:31:39 -08:00
Remove allow_copy_password_key from application preferences
This commit is contained in:
1 parent
a70122f873
commit
d5ff048bd0
2 files changed
-12
No files matched your search
@@ -73,8 +73,6 @@ class NestedAppSettingsFragment : NestedSettingsFragment() {
|
||||
setPreferencesFromResource(R.xml.preferences_application, rootKey)
|
||||
|
||||
activity?.let { activity ->
|
||||
allowCopyPassword()
|
||||
|
||||
findPreference<Preference>(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) {
|
||||
|
||||
@@ -114,11 +114,6 @@
|
||||
android:title="@string/hide_password_title"
|
||||
android:summary="@string/hide_password_summary"
|
||||
android:defaultValue="@bool/hide_password_default"/>
|
||||
<SwitchPreference
|
||||
android:key="@string/allow_copy_password_key"
|
||||
android:title="@string/allow_copy_password_title"
|
||||
android:summary="@string/allow_copy_password_summary"
|
||||
android:defaultValue="@bool/allow_copy_password_default"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
|
||||
Reference in new issue
Block a user