Skip to content

Commit

Permalink
Fix crash in room creation screen (#990)
Browse files Browse the repository at this point in the history
  • Loading branch information
yostyle authored Nov 22, 2023
1 parent cdc4482 commit 768385a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions changelog.d/885.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Correction du crash du nommage du salon lors de sa création.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package fr.gouv.tchap.features.home.roomdirectory.createroom
import android.net.Uri
import android.text.Editable
import android.view.View
import android.view.inputmethod.EditorInfo
import android.widget.ImageView
import android.widget.TextView
import androidx.core.view.isVisible
Expand Down Expand Up @@ -80,9 +79,6 @@ abstract class TchapRoomAvatarWithNameItem : EpoxyModelWithHolder<TchapRoomAvata
@EpoxyAttribute
var singleLine: Boolean = true

@EpoxyAttribute
var imeOptions: Int? = null

@EpoxyAttribute
var endIconMode: Int? = null

Expand Down Expand Up @@ -141,7 +137,6 @@ abstract class TchapRoomAvatarWithNameItem : EpoxyModelWithHolder<TchapRoomAvata
holder.textInputEditText.isEnabled = enabled
inputType?.let { holder.textInputEditText.inputType = it }
holder.textInputEditText.isSingleLine = singleLine
holder.textInputEditText.imeOptions = imeOptions ?: EditorInfo.IME_ACTION_NONE

holder.textInputEditText.addTextChangedListener(onTextChangeListener)
holder.textInputEditText.setOnEditorActionListener(editorActionListener)
Expand Down

0 comments on commit 768385a

Please sign in to comment.