Skip to content

Commit

Permalink
Fixed search issue in GroupwiseSkillsFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
pallav12 committed Feb 7, 2020
1 parent 388d20b commit b6f7dc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -147,6 +148,7 @@ class GroupWiseSkillsFragment : Fragment(), IGroupWiseSkillsView, SwipeRefreshLa
}

private fun loadSearchSkillsFragment(searchedSkills: ArrayList<SkillData>, searchQuery: String) {
Utils.hideSoftKeyboard(context, activity!!.window.decorView)
val skillSearchFragment = SearchSkillFragment.newInstance(searchedSkills, searchQuery)
fragmentManager?.beginTransaction()
?.add(R.id.fragment_container, skillSearchFragment)
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/layout/fragment_group_wise_skill_listing.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />

<TextView
Expand Down

0 comments on commit b6f7dc4

Please sign in to comment.