use keyboard capitalization settings

(cherry picked from commit 1bc843897d)
1.2-legacy
andrekir 2022-04-07 23:21:12 -03:00
rodzic 276f6dc758
commit 8b13961b83
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -57,8 +57,9 @@ class MessagesFragment : Fragment(), Logging {
// Allows textMultiline with IME_ACTION_SEND
private fun EditText.onActionSend(func: () -> Unit) {
setImeOptions(EditorInfo.IME_ACTION_SEND)
setRawInputType(InputType.TYPE_CLASS_TEXT)
imeOptions = EditorInfo.IME_ACTION_SEND
InputType.TYPE_TEXT_FLAG_MULTI_LINE
setRawInputType(InputType.TYPE_TEXT_FLAG_CAP_SENTENCES)
setOnEditorActionListener { _, actionId, _ ->
if (actionId == EditorInfo.IME_ACTION_SEND) {

Wyświetl plik

@ -57,7 +57,6 @@
android:id="@+id/messageInputText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textMultiLine"
android:maxLength="228"
android:text="" />