Skip to content
Snippets Groups Projects
Commit 6d5e5d63 authored by rahul-gill's avatar rahul-gill
Browse files

Breadcrumb fix

	1. fixed #2206: breadcrumb navigation fix
	2. when chosing subtitle file, navigating to parent directories
	   makes the breadcrumb invisible
parent d80f9893
No related branches found
No related tags found
1 merge request!1126Breadcrumb UI fixes
Pipeline #148213 passed with stage
in 20 minutes and 15 seconds
......@@ -166,7 +166,7 @@ abstract class BaseBrowserFragment : MediaBrowserFragment<BrowserModel>(), IRefr
open fun registerSwiperRefreshlayout() = swipeRefreshLayout.setOnRefreshListener(this)
override fun setBreadcrumb() {
val ariane = requireActivity().findViewById<RecyclerView>(R.id.ariane) ?: return
val ariane = binding.ariane
val media = currentMedia
if (media != null && isSchemeSupported(media.uri?.scheme)) {
ariane.visibility = View.VISIBLE
......@@ -194,8 +194,7 @@ abstract class BaseBrowserFragment : MediaBrowserFragment<BrowserModel>(), IRefr
}
}
if (!poped) {
viewModel.setDestination(MLServiceLocator.getAbstractMediaWrapper(tag.toUri()))
supportFragmentManager.beginTransaction().detach(this).attach(this).commit()
browse(MLServiceLocator.getAbstractMediaWrapper(tag.toUri()),false)
}
}
......@@ -214,12 +213,6 @@ abstract class BaseBrowserFragment : MediaBrowserFragment<BrowserModel>(), IRefr
(activity as? AudioPlayerContainerActivity)?.expandAppBar()
}
override fun onResume() {
super.onResume()
viewModel.getAndRemoveDestination()?.let {
browse(it, true)
}
}
override fun onStop() {
super.onStop()
......
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