Commit c1bc265 1 parent 2a8ac8f commit c1bc265 Copy full SHA for c1bc265
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 @@ -59,7 +59,7 @@ class NewMessageEditorManager @Inject constructor() : NewMessageManager() {
59
59
_openFilePicker = openFilePicker
60
60
}
61
61
62
- fun observeEditorActions () = with (binding) {
62
+ fun observeEditorFormatActions () = with (binding) {
63
63
newMessageViewModel.editorAction.observe(viewLifecycleOwner) { (editorAction, _) ->
64
64
when (editorAction) {
65
65
EditorAction .ATTACHMENT -> _openFilePicker ?.invoke()
@@ -76,7 +76,7 @@ class NewMessageEditorManager @Inject constructor() : NewMessageManager() {
76
76
}
77
77
}
78
78
79
- fun setupEditorActions () = with (binding) {
79
+ fun setupEditorFormatActions () = with (binding) {
80
80
fun linkEditor (view : MaterialButton , action : EditorAction ) {
81
81
view.setOnClickListener {
82
82
context.trackEvent(" editorActions" , action.matomoValue)
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ class NewMessageFragment : Fragment() {
193
193
observeShimmering()
194
194
195
195
with (editorManager) {
196
- observeEditorActions ()
196
+ observeEditorFormatActions ()
197
197
observeEditorStatus()
198
198
}
199
199
@@ -515,7 +515,7 @@ class NewMessageFragment : Fragment() {
515
515
newMessageViewModel.initResult.observe(viewLifecycleOwner) { (draft, signatures) ->
516
516
configureUiWithDraftData(draft)
517
517
setupFromField(signatures)
518
- editorManager.setupEditorActions ()
518
+ editorManager.setupEditorFormatActions ()
519
519
editorManager.setupEditorFormatActionsToggle()
520
520
}
521
521
}
You can’t perform that action at this time.
0 commit comments