mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
default template group name
This commit is contained in:
@@ -251,7 +251,7 @@ class NestedDatabaseSettingsFragment : NestedSettingsFragment(), DatabaseRetriev
|
||||
setOnPreferenceChangeListener { _, newValue ->
|
||||
val templatesEnabled = newValue as Boolean
|
||||
database.enableTemplates(templatesEnabled,
|
||||
TemplateEngine.getDefaultTemplateGroupName(resources)
|
||||
resources.getString(R.string.templates)
|
||||
)
|
||||
refreshTemplatesGroup(database)
|
||||
// Save the database if not in readonly mode
|
||||
|
||||
@@ -212,10 +212,6 @@ abstract class TemplateEngine(private val mDatabase: DatabaseKDBX) {
|
||||
sections)
|
||||
}
|
||||
|
||||
fun getDefaultTemplateGroupName(resources: Resources): String {
|
||||
return resources.getString(R.string.templates)
|
||||
}
|
||||
|
||||
fun getDefaults(): List<Template> {
|
||||
val templateBuilder = TemplateBuilder()
|
||||
return listOf(
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="templates">Templates</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user