Skip to content

Commit c1bc265

Browse files
committed
Coherent naming across editor format action methods
1 parent 2a8ac8f commit c1bc265

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/src/main/java/com/infomaniak/mail/ui/newMessage/NewMessageEditorManager.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class NewMessageEditorManager @Inject constructor() : NewMessageManager() {
5959
_openFilePicker = openFilePicker
6060
}
6161

62-
fun observeEditorActions() = with(binding) {
62+
fun observeEditorFormatActions() = with(binding) {
6363
newMessageViewModel.editorAction.observe(viewLifecycleOwner) { (editorAction, _) ->
6464
when (editorAction) {
6565
EditorAction.ATTACHMENT -> _openFilePicker?.invoke()
@@ -76,7 +76,7 @@ class NewMessageEditorManager @Inject constructor() : NewMessageManager() {
7676
}
7777
}
7878

79-
fun setupEditorActions() = with(binding) {
79+
fun setupEditorFormatActions() = with(binding) {
8080
fun linkEditor(view: MaterialButton, action: EditorAction) {
8181
view.setOnClickListener {
8282
context.trackEvent("editorActions", action.matomoValue)

app/src/main/java/com/infomaniak/mail/ui/newMessage/NewMessageFragment.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class NewMessageFragment : Fragment() {
193193
observeShimmering()
194194

195195
with(editorManager) {
196-
observeEditorActions()
196+
observeEditorFormatActions()
197197
observeEditorStatus()
198198
}
199199

@@ -515,7 +515,7 @@ class NewMessageFragment : Fragment() {
515515
newMessageViewModel.initResult.observe(viewLifecycleOwner) { (draft, signatures) ->
516516
configureUiWithDraftData(draft)
517517
setupFromField(signatures)
518-
editorManager.setupEditorActions()
518+
editorManager.setupEditorFormatActions()
519519
editorManager.setupEditorFormatActionsToggle()
520520
}
521521
}

0 commit comments

Comments
 (0)