diff --git a/app/src/main/java/org/fossasia/susi/ai/skills/groupwiseskills/GroupWiseSkillsFragment.kt b/app/src/main/java/org/fossasia/susi/ai/skills/groupwiseskills/GroupWiseSkillsFragment.kt index 99698babd3..568b812a04 100644 --- a/app/src/main/java/org/fossasia/susi/ai/skills/groupwiseskills/GroupWiseSkillsFragment.kt +++ b/app/src/main/java/org/fossasia/susi/ai/skills/groupwiseskills/GroupWiseSkillsFragment.kt @@ -18,6 +18,7 @@ import org.fossasia.susi.ai.R import org.fossasia.susi.ai.dataclasses.GroupWiseSkills import org.fossasia.susi.ai.helper.SimpleDividerItemDecoration import org.fossasia.susi.ai.helper.StartSnapHelper +import org.fossasia.susi.ai.helper.Utils import org.fossasia.susi.ai.rest.responses.susi.SkillData import org.fossasia.susi.ai.skills.SkillFragmentCallback import org.fossasia.susi.ai.skills.groupwiseskills.adapters.recycleradapters.SkillsListAdapter @@ -147,6 +148,7 @@ class GroupWiseSkillsFragment : Fragment(), IGroupWiseSkillsView, SwipeRefreshLa } private fun loadSearchSkillsFragment(searchedSkills: ArrayList, searchQuery: String) { + Utils.hideSoftKeyboard(context, activity!!.window.decorView) val skillSearchFragment = SearchSkillFragment.newInstance(searchedSkills, searchQuery) fragmentManager?.beginTransaction() ?.add(R.id.fragment_container, skillSearchFragment) diff --git a/app/src/main/res/layout/fragment_group_wise_skill_listing.xml b/app/src/main/res/layout/fragment_group_wise_skill_listing.xml index 35b7f4f27d..ccd7456b7d 100644 --- a/app/src/main/res/layout/fragment_group_wise_skill_listing.xml +++ b/app/src/main/res/layout/fragment_group_wise_skill_listing.xml @@ -69,6 +69,8 @@ android:padding="@dimen/padding_moderate" android:background="@color/browser_actions_bg_grey" android:visibility="gone" + android:imeOptions="actionSearch" + android:singleLine="true" android:id="@+id/skillWiseSearchEdit" />