fix: fix crash when long clicking search from the search tab
This commit is contained in:
parent
e87f47228f
commit
5d1d6e4bd7
|
@ -309,9 +309,14 @@ 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);
|
||||
discoverFragment.openSearch();
|
||||
|
||||
if(previousTab != R.id.tab_search)
|
||||
discoverFragment.openSearch();
|
||||
|
||||
return true;
|
||||
}
|
||||
if(tab==R.id.tab_home){
|
||||
|
|
Loading…
Reference in New Issue