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 {
|
private fun getGroupPresentation(model: Model): String {
|
||||||
return context.getString(
|
return model.data.storyRecipient.getDisplayName(context)
|
||||||
R.string.StoryViewerPageFragment__s_to_s,
|
|
||||||
getIndividualPresentation(model),
|
|
||||||
model.data.storyRecipient.getDisplayName(context)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getReleaseNotesPresentation(model: Model): CharSequence {
|
private fun getReleaseNotesPresentation(model: Model): CharSequence {
|
||||||
|
@ -258,14 +254,6 @@ object StoriesLandingItem {
|
||||||
return name
|
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) {
|
private fun displayContext(model: Model) {
|
||||||
itemView.isSelected = true
|
itemView.isSelected = true
|
||||||
StoryContextMenu.show(context, itemView, storyPreview, model) { itemView.isSelected = false }
|
StoryContextMenu.show(context, itemView, storyPreview, model) { itemView.isSelected = false }
|
||||||
|
|
Ładowanie…
Reference in New Issue