kopia lustrzana https://github.com/ryukoposting/Signal-Android
Add caption to outgoing stories.
rodzic
6890973ce8
commit
b04acd8ae0
|
@ -93,6 +93,7 @@ class MediaSelectionRepository(context: Context) {
|
||||||
|
|
||||||
for (media in updatedMedia) {
|
for (media in updatedMedia) {
|
||||||
Log.w(TAG, media.uri.toString() + " : " + media.transformProperties.map { t: TransformProperties -> "" + t.isVideoTrim }.orElse("null"))
|
Log.w(TAG, media.uri.toString() + " : " + media.transformProperties.map { t: TransformProperties -> "" + t.isVideoTrim }.orElse("null"))
|
||||||
|
media.setCaption(trimmedBody)
|
||||||
}
|
}
|
||||||
|
|
||||||
val singleRecipient: Recipient? = singleContact?.let { Recipient.resolved(it.recipientId) }
|
val singleRecipient: Recipient? = singleContact?.let { Recipient.resolved(it.recipientId) }
|
||||||
|
|
|
@ -477,8 +477,8 @@ class StoryViewerPageFragment :
|
||||||
|
|
||||||
@SuppressLint("SetTextI18n")
|
@SuppressLint("SetTextI18n")
|
||||||
private fun presentCaption(caption: TextView, largeCaption: TextView, largeCaptionOverlay: View, storyPost: StoryPost) {
|
private fun presentCaption(caption: TextView, largeCaption: TextView, largeCaptionOverlay: View, storyPost: StoryPost) {
|
||||||
val displayBody = if (storyPost.content is StoryPost.Content.AttachmentContent) {
|
val displayBody: String = if (storyPost.content is StoryPost.Content.AttachmentContent) {
|
||||||
storyPost.conversationMessage.getDisplayBody(requireContext())
|
storyPost.content.attachment.caption ?: ""
|
||||||
} else {
|
} else {
|
||||||
""
|
""
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue