|
|
|
|
@ -139,16 +139,6 @@ class CustomFieldDataFragment : EditableDataFragment(), StaticRowRepresentableDa |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
override fun editDescriptors(row: RowRepresentable): ArrayList<RowEditableDescriptor>? { |
|
|
|
|
return when (row) { |
|
|
|
|
SimpleRow.NAME -> row.editingDescriptors(mapOf("defaultValue" to this.customField.name)) |
|
|
|
|
is CustomFieldEntry -> row.editingDescriptors(mapOf("defaultValue" to row.value)) |
|
|
|
|
else -> null |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
override fun onRowSelected(position: Int, row: RowRepresentable, fromAction: Boolean) { |
|
|
|
|
when (row) { |
|
|
|
|
is CustomFieldEntry -> row.startEditing(null, this) |
|
|
|
|
@ -251,7 +241,6 @@ class CustomFieldDataFragment : EditableDataFragment(), StaticRowRepresentableDa |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Update UI |
|
|
|
|
*/ |
|
|
|
|
@ -269,9 +258,7 @@ class CustomFieldDataFragment : EditableDataFragment(), StaticRowRepresentableDa |
|
|
|
|
|
|
|
|
|
override fun onDataSaved() { |
|
|
|
|
super.onDataSaved() |
|
|
|
|
|
|
|
|
|
this.customField.cleanupEntries() |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |