From 864c9779eca823935aad159b2c92ba9922e8ae4c Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Sun, 11 Jul 2021 20:56:32 +0900 Subject: [PATCH] Fix double navigation in SearchFragment --- .../awais/instagrabber/fragments/search/SearchFragment.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/fragments/search/SearchFragment.java b/app/src/main/java/awais/instagrabber/fragments/search/SearchFragment.java index ea6bc5bc..b4370e02 100644 --- a/app/src/main/java/awais/instagrabber/fragments/search/SearchFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/search/SearchFragment.java @@ -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());