Use correct constant for hiding keyboard
../../src/main/java/org/schabi/newpipe/local/subscription/dialog/FeedGroupDialog.kt:509: Must be one or more of: InputMethodManager.HIDE_IMPLICIT_ONLY, InputMethodManager.HIDE_NOT_ALWAYS Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
parent
13b1a42450
commit
632b53e60c
2 changed files with 3 additions and 3 deletions
|
|
@ -506,7 +506,7 @@ class FeedGroupDialog : DialogFragment(), BackPressable {
|
||||||
private fun hideKeyboardSearch() {
|
private fun hideKeyboardSearch() {
|
||||||
inputMethodManager.hideSoftInputFromWindow(
|
inputMethodManager.hideSoftInputFromWindow(
|
||||||
searchLayoutBinding.toolbarSearchEditText.windowToken,
|
searchLayoutBinding.toolbarSearchEditText.windowToken,
|
||||||
InputMethodManager.RESULT_UNCHANGED_SHOWN
|
InputMethodManager.HIDE_NOT_ALWAYS
|
||||||
)
|
)
|
||||||
searchLayoutBinding.toolbarSearchEditText.clearFocus()
|
searchLayoutBinding.toolbarSearchEditText.clearFocus()
|
||||||
}
|
}
|
||||||
|
|
@ -523,7 +523,7 @@ class FeedGroupDialog : DialogFragment(), BackPressable {
|
||||||
private fun hideKeyboard() {
|
private fun hideKeyboard() {
|
||||||
inputMethodManager.hideSoftInputFromWindow(
|
inputMethodManager.hideSoftInputFromWindow(
|
||||||
feedGroupCreateBinding.groupNameInput.windowToken,
|
feedGroupCreateBinding.groupNameInput.windowToken,
|
||||||
InputMethodManager.RESULT_UNCHANGED_SHOWN
|
InputMethodManager.HIDE_NOT_ALWAYS
|
||||||
)
|
)
|
||||||
feedGroupCreateBinding.groupNameInput.clearFocus()
|
feedGroupCreateBinding.groupNameInput.clearFocus()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ public final class KeyboardUtil {
|
||||||
final InputMethodManager imm = ContextCompat.getSystemService(activity,
|
final InputMethodManager imm = ContextCompat.getSystemService(activity,
|
||||||
InputMethodManager.class);
|
InputMethodManager.class);
|
||||||
imm.hideSoftInputFromWindow(editText.getWindowToken(),
|
imm.hideSoftInputFromWindow(editText.getWindowToken(),
|
||||||
InputMethodManager.RESULT_UNCHANGED_SHOWN);
|
InputMethodManager.HIDE_NOT_ALWAYS);
|
||||||
|
|
||||||
editText.clearFocus();
|
editText.clearFocus();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue