Skip to content
Snippets Groups Projects
Commit ed2d049f authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Fix VideoBrowserFragment search feature

Fixes #2985
parent 0e75abd1
No related branches found
No related tags found
1 merge request!1780Fix VideoBrowserFragment search feature
Pipeline #380000 passed with stage
in 3 minutes and 35 seconds
......@@ -183,7 +183,7 @@ class VideoBrowserFragment : BaseFragment(), TabLayout.OnTabSelectedListener, Fi
*
* @return the current shown fragment
*/
private fun getCurrentFragment() = requireActivity().supportFragmentManager.findFragmentByTag("f" + viewPager.currentItem)
private fun getCurrentFragment() = childFragmentManager.findFragmentByTag("f" + viewPager.currentItem)
override fun getFilterQuery() = try {
(getCurrentFragment() as? Filterable)?.getFilterQuery()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment