Add inputType for room name creation and settings
This commit is contained in:
parent
0515303c8c
commit
ce23303b97
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
|
package im.vector.app.features.roomdirectory.createroom
|
||||||
|
|
||||||
|
import android.text.InputType
|
||||||
import com.airbnb.epoxy.TypedEpoxyController
|
import com.airbnb.epoxy.TypedEpoxyController
|
||||||
import com.airbnb.mvrx.Fail
|
import com.airbnb.mvrx.Fail
|
||||||
import com.airbnb.mvrx.Loading
|
import com.airbnb.mvrx.Loading
|
||||||
@ -67,6 +68,7 @@ class CreateRoomController @Inject constructor(
|
|||||||
enabled(enableFormElement)
|
enabled(enableFormElement)
|
||||||
value(viewState.roomName)
|
value(viewState.roomName)
|
||||||
hint(host.stringProvider.getString(R.string.create_room_name_hint))
|
hint(host.stringProvider.getString(R.string.create_room_name_hint))
|
||||||
|
inputType(InputType.TYPE_TEXT_FLAG_CAP_SENTENCES)
|
||||||
|
|
||||||
onTextChange { text ->
|
onTextChange { text ->
|
||||||
host.listener?.onNameChange(text)
|
host.listener?.onNameChange(text)
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
package im.vector.app.features.roomprofile.settings
|
package im.vector.app.features.roomprofile.settings
|
||||||
|
|
||||||
|
import android.text.InputType
|
||||||
import com.airbnb.epoxy.TypedEpoxyController
|
import com.airbnb.epoxy.TypedEpoxyController
|
||||||
import im.vector.app.R
|
import im.vector.app.R
|
||||||
import im.vector.app.core.epoxy.dividerItem
|
import im.vector.app.core.epoxy.dividerItem
|
||||||
@ -91,6 +92,7 @@ class RoomSettingsController @Inject constructor(
|
|||||||
enabled(data.actionPermissions.canChangeName)
|
enabled(data.actionPermissions.canChangeName)
|
||||||
value(data.newName ?: roomSummary.displayName)
|
value(data.newName ?: roomSummary.displayName)
|
||||||
hint(host.stringProvider.getString(R.string.room_settings_name_hint))
|
hint(host.stringProvider.getString(R.string.room_settings_name_hint))
|
||||||
|
inputType(InputType.TYPE_TEXT_FLAG_CAP_SENTENCES)
|
||||||
|
|
||||||
onTextChange { text ->
|
onTextChange { text ->
|
||||||
host.callback?.onNameChanged(text)
|
host.callback?.onNameChanged(text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user