refactor(HomeFragment): refactor long click action for cleaner code

This commit is contained in:
LucasGGamerM
2023-09-04 07:35:48 -03:00
parent d39d5c2602
commit c49b25454e

View File

@@ -309,14 +309,11 @@ 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; if(currentTab!=R.id.tab_search){
onTabSelected(R.id.tab_search); onTabSelected(R.id.tab_search);
tabBar.selectTab(R.id.tab_search); tabBar.selectTab(R.id.tab_search);
}
if(!GlobalUserPreferences.doubleTapToSearch)
discoverFragment.openSearch(); discoverFragment.openSearch();
return true; return true;
} }
if(tab==R.id.tab_home){ if(tab==R.id.tab_home){