[Rich text editor] Fix keyboard closing after collapsing rich text editor (#7659)

This commit is contained in:
jonnyandrew 2022-12-01 13:39:01 +00:00 committed by GitHub
parent c20500ab7a
commit da5db0ed15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

1
changelog.d/7659.bugfix Normal file
View File

@ -0,0 +1 @@
[Rich text editor] Fix keyboard closing after collapsing editor

View File

@ -42,7 +42,6 @@ import androidx.core.view.isVisible
import androidx.core.view.updateLayoutParams
import com.google.android.material.shape.MaterialShapeDrawable
import im.vector.app.R
import im.vector.app.core.extensions.hideKeyboard
import im.vector.app.core.extensions.setTextIfDifferent
import im.vector.app.core.extensions.showKeyboard
import im.vector.app.core.utils.DimensionConverter
@ -132,8 +131,6 @@ class RichTextComposerLayout @JvmOverloads constructor(
views.bottomSheetHandle.isVisible = isFullScreen
if (isFullScreen) {
editText.showKeyboard(true)
} else {
editText.hideKeyboard()
}
this.isFullScreen = isFullScreen
}