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