[Rich text editor] Fix keyboard closing after collapsing rich text editor (#7659)
This commit is contained in:
parent
c20500ab7a
commit
da5db0ed15
|
@ -0,0 +1 @@
|
||||||
|
[Rich text editor] Fix keyboard closing after collapsing editor
|
|
@ -42,7 +42,6 @@ import androidx.core.view.isVisible
|
||||||
import androidx.core.view.updateLayoutParams
|
import androidx.core.view.updateLayoutParams
|
||||||
import com.google.android.material.shape.MaterialShapeDrawable
|
import com.google.android.material.shape.MaterialShapeDrawable
|
||||||
import im.vector.app.R
|
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.setTextIfDifferent
|
||||||
import im.vector.app.core.extensions.showKeyboard
|
import im.vector.app.core.extensions.showKeyboard
|
||||||
import im.vector.app.core.utils.DimensionConverter
|
import im.vector.app.core.utils.DimensionConverter
|
||||||
|
@ -132,8 +131,6 @@ class RichTextComposerLayout @JvmOverloads constructor(
|
||||||
views.bottomSheetHandle.isVisible = isFullScreen
|
views.bottomSheetHandle.isVisible = isFullScreen
|
||||||
if (isFullScreen) {
|
if (isFullScreen) {
|
||||||
editText.showKeyboard(true)
|
editText.showKeyboard(true)
|
||||||
} else {
|
|
||||||
editText.hideKeyboard()
|
|
||||||
}
|
}
|
||||||
this.isFullScreen = isFullScreen
|
this.isFullScreen = isFullScreen
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue