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;
|
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){
|
||||||
|
|||||||
Reference in New Issue
Block a user