fix: only call openSearch once without doubleTapToSearch

This commit is contained in:
FineFindus 2023-09-03 21:47:45 +02:00
parent ca4630e6e1
commit a2d0738a68
No known key found for this signature in database
GPG Key ID: 64873EE210FF8E6B
1 changed files with 3 additions and 3 deletions

View File

@ -309,13 +309,13 @@ 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;
} }