mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 05:40:31 +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 {
|
||||
if (!::navController.isInitialized) return false
|
||||
if (!this::navController.isInitialized) 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() {
|
||||
|
Loading…
Reference in New Issue
Block a user