Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa7f1712 authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

rename variable imm to inputMethodManager

parent 33a13b7f
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)
        }
    }