Skip to content

Auto Focus Doesn't show keyboard in SearchFragment.kt + fix for it #12

@Harshshah6

Description

@Harshshah6

Problem happens here:

- binding.etSearch.requestFocus()
+ binding.etSearch.post { 
+     binding.etSearch.requestFocus() 
+     val controller = WindowCompat.getInsetsController( 
+          requireActivity().window, 
+          binding.etSearch 
+     ) 
+     controller.show(WindowInsetsCompat.Type.ime()) 
+ } 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions