mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
Merge pull request #5724 from Bnyro/master
fix: going back from a video shows search history instead of playlist
This commit is contained in:
commit
4a3eede8f9
@ -249,9 +249,10 @@ class MainActivity : BaseActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun isSearchInProgress(): Boolean {
|
private fun isSearchInProgress(): Boolean {
|
||||||
if (!::navController.isInitialized) return false
|
if (!this::navController.isInitialized) return false
|
||||||
val id = navController.currentDestination?.id ?: return false
|
val id = navController.currentDestination?.id ?: return false
|
||||||
return id in listOf(R.id.searchFragment, R.id.searchResultFragment, R.id.channelFragment)
|
|
||||||
|
return id in listOf(R.id.searchFragment, R.id.searchResultFragment, R.id.channelFragment, R.id.playlistFragment)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun invalidateMenu() {
|
override fun invalidateMenu() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user