fix: only call openSearch once without doubleTapToSearch
This commit is contained in:
parent
ca4630e6e1
commit
a2d0738a68
|
@ -309,13 +309,13 @@ public class HomeFragment extends AppKitFragment implements OnBackPressedListene
|
|||
return true;
|
||||
}
|
||||
if(tab==R.id.tab_search){
|
||||
//int previousTab = currentTab;
|
||||
// int previousTab = currentTab;
|
||||
|
||||
onTabSelected(R.id.tab_search);
|
||||
tabBar.selectTab(R.id.tab_search);
|
||||
|
||||
//if(previousTab != R.id.tab_search)
|
||||
discoverFragment.openSearch();
|
||||
if(!GlobalUserPreferences.doubleTapToSearch)
|
||||
discoverFragment.openSearch();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue