remove unused navigate method

This commit is contained in:
pokkst 2022-10-01 22:15:49 -05:00
parent c4d012be69
commit 316fb994da
No known key found for this signature in database
GPG key ID: 90C2ED85E67A50FF

View file

@ -133,16 +133,4 @@ public class OnboardingFragment extends Fragment {
private boolean checkMnemonic(String seed) { private boolean checkMnemonic(String seed) {
return (seed.split("\\s").length == 25); return (seed.split("\\s").length == 25);
} }
private void navigate(int destination) {
FragmentActivity activity = getActivity();
if (activity != null) {
FragmentManager fm = activity.getSupportFragmentManager();
NavHostFragment navHostFragment =
(NavHostFragment) fm.findFragmentById(R.id.nav_host_fragment);
if (navHostFragment != null) {
navHostFragment.getNavController().navigate(destination);
}
}
}
} }