File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
app/src/main/java/com/infomaniak/mail/ui/newMessage Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ class NewMessageFragment : Fragment() {
265265 override fun onDestroyView () {
266266 // This block of code is needed in order to keep and reload the content of the editor across configuration changes.
267267 binding.editor.exportHtml { html ->
268- newMessageViewModel.editorBodyLoader .postValue(BodyContentPayload (html, BodyContentType .HTML_SANITIZED ))
268+ newMessageViewModel.editorBodyInitializer .postValue(BodyContentPayload (html, BodyContentType .HTML_SANITIZED ))
269269 }
270270
271271 addressListPopupWindow = null
@@ -565,7 +565,7 @@ class NewMessageFragment : Fragment() {
565565 }
566566
567567 private fun observeBodyLoader () {
568- newMessageViewModel.editorBodyLoader .observe(viewLifecycleOwner) { body ->
568+ newMessageViewModel.editorBodyInitializer .observe(viewLifecycleOwner) { body ->
569569 editorContentManager.setContent(binding.editor, body)
570570 }
571571 }
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ class NewMessageViewModel @Inject constructor(
116116 val uiQuoteLiveData = MutableLiveData <String ?>()
117117 // endregion
118118
119- val editorBodyLoader = SingleLiveEvent <BodyContentPayload >()
119+ val editorBodyInitializer = SingleLiveEvent <BodyContentPayload >()
120120
121121 // 1. Navigating to AiPropositionFragment causes NewMessageFragment to export its body to `subjectAndBodyChannel`.
122122 // 2. Inserting the AI proposition navigates back to NewMessageFragment.
@@ -407,7 +407,7 @@ class NewMessageViewModel @Inject constructor(
407407
408408 attachmentsLiveData.postValue(attachments)
409409
410- editorBodyLoader .postValue(uiBody)
410+ editorBodyInitializer .postValue(uiBody)
411411
412412 uiSignatureLiveData.postValue(uiSignature)
413413 uiQuoteLiveData.postValue(uiQuote)
You can’t perform that action at this time.
0 commit comments