mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Fix title
This commit is contained in:
@@ -98,9 +98,15 @@ class TemplateView @JvmOverloads constructor(context: Context,
|
||||
customFieldsContainerView.removeAllViews()
|
||||
mCustomFieldIds.clear()
|
||||
|
||||
findViewById<View?>(R.id.entry_edit_title)?.tag = FIELD_TITLE_TAG
|
||||
mTemplate?.let { template ->
|
||||
|
||||
mTemplate?.sections?.forEach { templateSection ->
|
||||
findViewById<EntryEditFieldView?>(R.id.entry_edit_title)?.apply {
|
||||
tag = FIELD_TITLE_TAG
|
||||
id = TemplateField.LABEL_TITLE.hashCode()
|
||||
label = TemplateField.getLocalizedName(context, TemplateField.LABEL_TITLE)
|
||||
}
|
||||
|
||||
template.sections.forEach { templateSection ->
|
||||
|
||||
val sectionView = SectionView(context, null, R.attr.cardViewStyle)
|
||||
// Add build view to parent
|
||||
@@ -149,6 +155,7 @@ class TemplateView @JvmOverloads constructor(context: Context,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun buildViewForCustomField(field: Field): View? {
|
||||
val customFieldTemplateAttribute = TemplateAttribute(
|
||||
|
||||
Reference in New Issue
Block a user