Fix double navigation in SearchFragment

This commit is contained in:
Ammar Githam 2021-07-11 20:56:32 +09:00
parent efd3f8cff0
commit 864c9779ec
1 changed files with 0 additions and 2 deletions

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());