Loading app/src/main/java/foundation/e/apps/search/SearchFragment.kt +2 −2 Original line number Diff line number Diff line Loading @@ -431,12 +431,12 @@ class SearchFragment : } private fun showKeyboard() { val imm = requireContext().getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager val inputMethodManager = requireContext().getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager searchView?.javaClass?.getDeclaredField("mSearchSrcTextView")?.runCatching { isAccessible = true get(searchView)as EditText }?.onSuccess { imm.showSoftInput(it, InputMethodManager.SHOW_FORCED) inputMethodManager.showSoftInput(it, InputMethodManager.SHOW_FORCED) } } Loading Loading
app/src/main/java/foundation/e/apps/search/SearchFragment.kt +2 −2 Original line number Diff line number Diff line Loading @@ -431,12 +431,12 @@ class SearchFragment : } private fun showKeyboard() { val imm = requireContext().getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager val inputMethodManager = requireContext().getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager searchView?.javaClass?.getDeclaredField("mSearchSrcTextView")?.runCatching { isAccessible = true get(searchView)as EditText }?.onSuccess { imm.showSoftInput(it, InputMethodManager.SHOW_FORCED) inputMethodManager.showSoftInput(it, InputMethodManager.SHOW_FORCED) } } Loading