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:
parent
efd3f8cff0
commit
864c9779ec
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user