refactor(HomeFragment): refactor long click action for cleaner code
This commit is contained in:
@@ -309,14 +309,11 @@ public class HomeFragment extends AppKitFragment implements OnBackPressedListene
|
||||
return true;
|
||||
}
|
||||
if(tab==R.id.tab_search){
|
||||
// int previousTab = currentTab;
|
||||
|
||||
onTabSelected(R.id.tab_search);
|
||||
tabBar.selectTab(R.id.tab_search);
|
||||
|
||||
if(!GlobalUserPreferences.doubleTapToSearch)
|
||||
discoverFragment.openSearch();
|
||||
|
||||
if(currentTab!=R.id.tab_search){
|
||||
onTabSelected(R.id.tab_search);
|
||||
tabBar.selectTab(R.id.tab_search);
|
||||
}
|
||||
discoverFragment.openSearch();
|
||||
return true;
|
||||
}
|
||||
if(tab==R.id.tab_home){
|
||||
|
||||
Reference in New Issue
Block a user