Fix odd keyboard open state when viewing media.

This commit is contained in:
Cody Henthorne
2023-07-26 11:05:18 -04:00
parent a09bc53b99
commit 0c3b541031
2 changed files with 8 additions and 0 deletions

View File

@@ -37,6 +37,11 @@ class InputAwareConstraintLayout @JvmOverloads constructor(
hideInput(resetKeyboardGuideline = false)
}
fun hideAll(imeTarget: EditText) {
ViewUtil.hideKeyboard(context, imeTarget)
hideInput(resetKeyboardGuideline = true)
}
fun toggleInput(fragmentCreator: FragmentCreator, imeTarget: EditText, showSoftKeyOnHide: Boolean = false) {
if (fragmentCreator.id == inputId) {
if (showSoftKeyOnHide) {