|
|
|
|
@ -48,7 +48,7 @@ enum class LiveData : Localizable { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private fun newEntity(): RealmModel{ |
|
|
|
|
private fun newEntity(): RealmModel { |
|
|
|
|
return this.relatedEntity.newInstance() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -86,4 +86,11 @@ enum class LiveData : Localizable { |
|
|
|
|
return "${context.getString(R.string.new_str)} ${this.localizedTitle(context).toLowerCase()}" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Return the update entity titleResId |
|
|
|
|
*/ |
|
|
|
|
fun updateEntityLocalizedTitle(context: Context): String { |
|
|
|
|
return "${context.getString(R.string.update_entity)} ${this.localizedTitle(context).toLowerCase()}" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|