Prevent navigating to player tab when searching recycle bin
This commit is contained in:
parent
f5079dd8bf
commit
dda0a9aa87
1 changed files with 3 additions and 1 deletions
|
@ -118,7 +118,9 @@ class MainActivity : SimpleActivity() {
|
|||
main_menu.setupMenu()
|
||||
|
||||
main_menu.onSearchOpenListener = {
|
||||
view_pager.currentItem = 1
|
||||
if (view_pager.currentItem == 0) {
|
||||
view_pager.currentItem = 1
|
||||
}
|
||||
}
|
||||
|
||||
main_menu.onSearchTextChangedListener = { text ->
|
||||
|
|
Loading…
Reference in a new issue