|
|
|
@ -65,11 +65,9 @@ open class EditableDataFragment : DataManagerFragment(), RowRepresentableDelegat |
|
|
|
|
|
|
|
|
|
|
|
val proxyItem: RealmModel? = this.liveDataType.getData(this.getRealm(), primaryKey) |
|
|
|
val proxyItem: RealmModel? = this.liveDataType.getData(this.getRealm(), primaryKey) |
|
|
|
proxyItem?.let { |
|
|
|
proxyItem?.let { |
|
|
|
//TODO: Localize |
|
|
|
this.appBar.toolbar.title = this.liveDataType.updateEntityLocalizedTitle(requireContext()) |
|
|
|
this.appBar.toolbar.title = "Update ${this.liveDataType.localizedTitle(requireContext()).toLowerCase().capitalize()}" |
|
|
|
|
|
|
|
deleteButtonShouldAppear = true |
|
|
|
deleteButtonShouldAppear = true |
|
|
|
} ?: run { |
|
|
|
} ?: run { |
|
|
|
//TODO: Localize |
|
|
|
|
|
|
|
this.appBar.toolbar.title = this.liveDataType.newEntityLocalizedTitle(requireContext()) |
|
|
|
this.appBar.toolbar.title = this.liveDataType.newEntityLocalizedTitle(requireContext()) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|