mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-27 14:40:22 +00:00
Add caption to outgoing stories.
This commit is contained in:
committed by
Greyson Parrelli
parent
6890973ce8
commit
b04acd8ae0
@@ -93,6 +93,7 @@ class MediaSelectionRepository(context: Context) {
|
||||
|
||||
for (media in updatedMedia) {
|
||||
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) }
|
||||
|
||||
@@ -477,8 +477,8 @@ class StoryViewerPageFragment :
|
||||
|
||||
@SuppressLint("SetTextI18n")
|
||||
private fun presentCaption(caption: TextView, largeCaption: TextView, largeCaptionOverlay: View, storyPost: StoryPost) {
|
||||
val displayBody = if (storyPost.content is StoryPost.Content.AttachmentContent) {
|
||||
storyPost.conversationMessage.getDisplayBody(requireContext())
|
||||
val displayBody: String = if (storyPost.content is StoryPost.Content.AttachmentContent) {
|
||||
storyPost.content.attachment.caption ?: ""
|
||||
} else {
|
||||
""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user