kopia lustrzana https://github.com/ryukoposting/Signal-Android
Update group name display in stories landing page.
rodzic
c77718f4c7
commit
b32fe003b2
|
@ -242,11 +242,7 @@ object StoriesLandingItem {
|
|||
}
|
||||
|
||||
private fun getGroupPresentation(model: Model): String {
|
||||
return context.getString(
|
||||
R.string.StoryViewerPageFragment__s_to_s,
|
||||
getIndividualPresentation(model),
|
||||
model.data.storyRecipient.getDisplayName(context)
|
||||
)
|
||||
return model.data.storyRecipient.getDisplayName(context)
|
||||
}
|
||||
|
||||
private fun getReleaseNotesPresentation(model: Model): CharSequence {
|
||||
|
@ -258,14 +254,6 @@ object StoriesLandingItem {
|
|||
return name
|
||||
}
|
||||
|
||||
private fun getIndividualPresentation(model: Model): String {
|
||||
return if (model.data.primaryStory.messageRecord.isOutgoing) {
|
||||
context.getString(R.string.Recipient_you)
|
||||
} else {
|
||||
model.data.individualRecipient.getDisplayName(context)
|
||||
}
|
||||
}
|
||||
|
||||
private fun displayContext(model: Model) {
|
||||
itemView.isSelected = true
|
||||
StoryContextMenu.show(context, itemView, storyPreview, model) { itemView.isSelected = false }
|
||||
|
|
Ładowanie…
Reference in New Issue