mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 12:00:03 +03:00
Fix IllegalStateException: focus search returned a view that wasn't able to take focus!
And no multiline input for room alias
This commit is contained in:
parent
b2556cb293
commit
096abd7ebf
3 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
|||
|
||||
package im.vector.app.features.roomprofile.alias
|
||||
|
||||
import android.text.InputType
|
||||
import com.airbnb.epoxy.TypedEpoxyController
|
||||
import com.airbnb.mvrx.Fail
|
||||
import com.airbnb.mvrx.Loading
|
||||
|
@ -169,6 +170,7 @@ class RoomAliasController @Inject constructor(
|
|||
value(data.publishManuallyState.value)
|
||||
showBottomSeparator(false)
|
||||
hint(stringProvider.getString(R.string.room_alias_address_hint))
|
||||
inputType(InputType.TYPE_CLASS_TEXT)
|
||||
onTextChange { text ->
|
||||
callback?.setNewAlias(text)
|
||||
}
|
||||
|
|
|
@ -20,10 +20,12 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<!-- android:imeOptions="actionDone" to fix a crash -->
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/formTextInputTextInputEditText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:imeOptions="actionDone"
|
||||
tools:hint="@string/create_room_name_hint" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
|
|
@ -30,11 +30,13 @@
|
|||
app:layout_constraintStart_toEndOf="@+id/itemRoomAliasHash"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<!-- android:imeOptions="actionDone" to fix a crash -->
|
||||
<com.google.android.material.textfield.TextInputEditText
|
||||
android:id="@+id/itemRoomAliasTextInputEditText"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="@string/create_room_alias_hint"
|
||||
android:imeOptions="actionDone"
|
||||
android:inputType="text" />
|
||||
|
||||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
|
Loading…
Reference in a new issue