mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-15 03:07:29 +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) {
|
switch (type) {
|
||||||
case USER:
|
case USER:
|
||||||
action = SearchFragmentDirections.actionToProfile().setUsername(searchItem.getUser().getUsername());
|
action = SearchFragmentDirections.actionToProfile().setUsername(searchItem.getUser().getUsername());
|
||||||
NavHostFragment.findNavController(this).navigate(action);
|
|
||||||
break;
|
break;
|
||||||
case HASHTAG:
|
case HASHTAG:
|
||||||
action = SearchFragmentDirections.actionToHashtag(searchItem.getHashtag().getName());
|
action = SearchFragmentDirections.actionToHashtag(searchItem.getHashtag().getName());
|
||||||
NavHostFragment.findNavController(this).navigate(action);
|
|
||||||
break;
|
break;
|
||||||
case LOCATION:
|
case LOCATION:
|
||||||
action = SearchFragmentDirections.actionToLocation(searchItem.getPlace().getLocation().getPk());
|
action = SearchFragmentDirections.actionToLocation(searchItem.getPlace().getLocation().getPk());
|
||||||
|
Loading…
Reference in New Issue
Block a user