Fix template order

This commit is contained in:
J-Jamet
2021-07-07 16:02:24 +02:00
parent 7595f113ec
commit 23c9a5963a

View File

@@ -27,9 +27,9 @@ abstract class TemplateEngine(private val mDatabase: DatabaseKDBX) {
templateGroup.getChildEntries().forEach { templateEntry ->
getTemplateFromTemplateEntry(templateEntry)?.let {
mCacheTemplates[templateEntry.id] = it
templates.add(it)
}
}
templates.addAll(mCacheTemplates.values)
}
} catch (e: Exception) {
Log.e(TAG, "Unable to get templates from group", e)