Skip to content
Snippets Groups Projects
Unverified Commit 87f867ec authored by Chilja Gossow's avatar Chilja Gossow Committed by GitHub
Browse files

save data on ime_action_done (#1940)

parent ebab5f2f
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,10 @@ class ContactDiaryLocationBottomSheetDialogFragment : BottomSheetDialogFragment( ...@@ -61,7 +61,10 @@ class ContactDiaryLocationBottomSheetDialogFragment : BottomSheetDialogFragment(
binding.contactDiaryLocationBottomSheetTextInputEditText.setOnEditorActionListener { v, actionId, event -> binding.contactDiaryLocationBottomSheetTextInputEditText.setOnEditorActionListener { v, actionId, event ->
return@setOnEditorActionListener when (actionId) { return@setOnEditorActionListener when (actionId) {
EditorInfo.IME_ACTION_DONE -> false EditorInfo.IME_ACTION_DONE -> {
binding.contactDiaryLocationBottomSheetSaveButton.performClick()
false
}
else -> true else -> true
} }
} }
......
...@@ -61,7 +61,10 @@ class ContactDiaryPersonBottomSheetDialogFragment : BottomSheetDialogFragment(), ...@@ -61,7 +61,10 @@ class ContactDiaryPersonBottomSheetDialogFragment : BottomSheetDialogFragment(),
binding.contactDiaryPersonBottomSheetTextInputEditText.setOnEditorActionListener { v, actionId, event -> binding.contactDiaryPersonBottomSheetTextInputEditText.setOnEditorActionListener { v, actionId, event ->
return@setOnEditorActionListener when (actionId) { return@setOnEditorActionListener when (actionId) {
EditorInfo.IME_ACTION_DONE -> false EditorInfo.IME_ACTION_DONE -> {
binding.contactDiaryPersonBottomSheetSaveButton.performClick()
false
}
else -> true else -> true
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment