Skip to content

Commit

Permalink
fix: [ANDROAPP-6535] add default relationship name
Browse files Browse the repository at this point in the history
Signed-off-by: andresmr <[email protected]>
  • Loading branch information
andresmr authored and Balcan committed Dec 23, 2024
1 parent 0cb62f2 commit a867f5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,13 @@ abstract class RelationshipsRepository(
): String {
return when (entitySide) {
RelationshipConstraintType.FROM -> {
relationshipType.fromToName() ?: relationshipType.displayName() ?: ""
relationshipType.fromToName() ?: relationshipType.displayName()
?: resources.getString(R.string.relationship)
}

RelationshipConstraintType.TO -> {
relationshipType.toFromName() ?: relationshipType.displayName() ?: ""
relationshipType.toFromName() ?: relationshipType.displayName()
?: resources.getString(R.string.relationship)
}
}
}
Expand Down
1 change: 1 addition & 0 deletions tracker/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
<string name="remove_some_relationships_title">Remove %d selected relationships?</string>
<string name="remove_some_relationships_desc">The %d selected relationships will be deleted. This action cannot be undone.</string>
<string name="show_number_more">Show %d more...</string>
<string name="relationship">Relationship</string>
</resources>

0 comments on commit a867f5b

Please sign in to comment.