mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +03:00
Add inputType for room name creation and settings
This commit is contained in:
parent
0515303c8c
commit
ce23303b97
3 changed files with 5 additions and 0 deletions
1
changelog.d/6645.misc
Normal file
1
changelog.d/6645.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Enable auto-capitalization for Room creation Title field
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
package im.vector.app.features.roomdirectory.createroom
|
||||
|
||||
import android.text.InputType
|
||||
import com.airbnb.epoxy.TypedEpoxyController
|
||||
import com.airbnb.mvrx.Fail
|
||||
import com.airbnb.mvrx.Loading
|
||||
|
@ -67,6 +68,7 @@ class CreateRoomController @Inject constructor(
|
|||
enabled(enableFormElement)
|
||||
value(viewState.roomName)
|
||||
hint(host.stringProvider.getString(R.string.create_room_name_hint))
|
||||
inputType(InputType.TYPE_TEXT_FLAG_CAP_SENTENCES)
|
||||
|
||||
onTextChange { text ->
|
||||
host.listener?.onNameChange(text)
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
package im.vector.app.features.roomprofile.settings
|
||||
|
||||
import android.text.InputType
|
||||
import com.airbnb.epoxy.TypedEpoxyController
|
||||
import im.vector.app.R
|
||||
import im.vector.app.core.epoxy.dividerItem
|
||||
|
@ -91,6 +92,7 @@ class RoomSettingsController @Inject constructor(
|
|||
enabled(data.actionPermissions.canChangeName)
|
||||
value(data.newName ?: roomSummary.displayName)
|
||||
hint(host.stringProvider.getString(R.string.room_settings_name_hint))
|
||||
inputType(InputType.TYPE_TEXT_FLAG_CAP_SENTENCES)
|
||||
|
||||
onTextChange { text ->
|
||||
host.callback?.onNameChanged(text)
|
||||
|
|
Loading…
Add table
Reference in a new issue