fix: fix crash when long clicking search from the search tab

This commit is contained in:
LucasGGamerM 2023-08-27 20:15:53 -03:00
parent e87f47228f
commit 5d1d6e4bd7
1 changed files with 6 additions and 1 deletions

View File

@ -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){