Fix small TODO

This commit is contained in:
J-Jamet
2021-07-20 17:12:48 +02:00
parent 902392ea30
commit 524c8ccfc5
2 changed files with 7 additions and 11 deletions

View File

@@ -378,19 +378,11 @@ class EntryEditActivity : LockingActivity(),
* Add a new customized field
*/
private fun addNewCustomField() {
//if (mIsTemplate) {
// TODO Custom Dialog to add a complete template field
//} else {
EntryCustomFieldDialogFragment.getInstance().show(supportFragmentManager, "customFieldDialog")
//}
}
private fun editCustomField(field: Field) {
//if (mIsTemplate) {
// TODO Custom Dialog to edit a complete template field
//} else {
EntryCustomFieldDialogFragment.getInstance(field).show(supportFragmentManager, "customFieldDialog")
//}
}
override fun onNewCustomFieldApproved(newField: Field) {

View File

@@ -121,7 +121,11 @@ class DateTimeEditFieldView @JvmOverloads constructor(context: Context,
return if (activation) dateTime.toString() else ""
}
set(value) {
// TODO set date time string value
mDateTime = try {
DateInstant(value)
} catch (e: Exception) {
DateInstant.NEVER_EXPIRES
}
}
override var isFieldVisible: Boolean