Adapt code for each custom fields

This commit is contained in:
J-Jamet
2021-06-01 13:52:49 +02:00
parent 69bc697568
commit e4c3c224d9

View File

@@ -68,7 +68,7 @@ class TemplateEngine(private val databaseKDBX: DatabaseKDBX) {
private fun getTemplateFromTemplateEntry(templateEntry: EntryKDBX): Template? { private fun getTemplateFromTemplateEntry(templateEntry: EntryKDBX): Template? {
var templateVersion: Int? = null var templateVersion: Int? = null
val attributes = HashMap<String, TemplateAttributePosition>() val attributes = HashMap<String, TemplateAttributePosition>()
for ((key, value) in templateEntry.customFields) { templateEntry.doForEachDecodedCustomField { key, value ->
when { when {
key.equals(TEMPLATE_LABEL_VERSION, true) -> { key.equals(TEMPLATE_LABEL_VERSION, true) -> {
try { try {