File tree 2 files changed +4
-4
lines changed
app/src/main/java/com/infomaniak/mail/ui/newMessage
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ class NewMessageFragment : Fragment() {
265
265
override fun onDestroyView () {
266
266
// This block of code is needed in order to keep and reload the content of the editor across configuration changes.
267
267
binding.editor.exportHtml { html ->
268
- newMessageViewModel.editorBodyLoader .postValue(BodyContentPayload (html, BodyContentType .HTML_SANITIZED ))
268
+ newMessageViewModel.editorBodyInitializer .postValue(BodyContentPayload (html, BodyContentType .HTML_SANITIZED ))
269
269
}
270
270
271
271
addressListPopupWindow = null
@@ -565,7 +565,7 @@ class NewMessageFragment : Fragment() {
565
565
}
566
566
567
567
private fun observeBodyLoader () {
568
- newMessageViewModel.editorBodyLoader .observe(viewLifecycleOwner) { body ->
568
+ newMessageViewModel.editorBodyInitializer .observe(viewLifecycleOwner) { body ->
569
569
editorContentManager.setContent(binding.editor, body)
570
570
}
571
571
}
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ class NewMessageViewModel @Inject constructor(
116
116
val uiQuoteLiveData = MutableLiveData <String ?>()
117
117
// endregion
118
118
119
- val editorBodyLoader = SingleLiveEvent <BodyContentPayload >()
119
+ val editorBodyInitializer = SingleLiveEvent <BodyContentPayload >()
120
120
121
121
// 1. Navigating to AiPropositionFragment causes NewMessageFragment to export its body to `subjectAndBodyChannel`.
122
122
// 2. Inserting the AI proposition navigates back to NewMessageFragment.
@@ -407,7 +407,7 @@ class NewMessageViewModel @Inject constructor(
407
407
408
408
attachmentsLiveData.postValue(attachments)
409
409
410
- editorBodyLoader .postValue(uiBody)
410
+ editorBodyInitializer .postValue(uiBody)
411
411
412
412
uiSignatureLiveData.postValue(uiSignature)
413
413
uiQuoteLiveData.postValue(uiQuote)
You can’t perform that action at this time.
0 commit comments