1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-14 18:57:30 +00:00

Fix double navigation in SearchFragment

This commit is contained in:
Ammar Githam 2021-07-11 20:56:32 +09:00
parent efd3f8cff0
commit 864c9779ec

View File

@ -211,11 +211,9 @@ public class SearchFragment extends Fragment implements SearchCategoryFragment.O
switch (type) {
case USER:
action = SearchFragmentDirections.actionToProfile().setUsername(searchItem.getUser().getUsername());
NavHostFragment.findNavController(this).navigate(action);
break;
case HASHTAG:
action = SearchFragmentDirections.actionToHashtag(searchItem.getHashtag().getName());
NavHostFragment.findNavController(this).navigate(action);
break;
case LOCATION:
action = SearchFragmentDirections.actionToLocation(searchItem.getPlace().getLocation().getPk());