app/src/main/java/com/adamg/materialtemplate/navigator/Navigator.java
private void navigateToFragment(final Fragment fragment, final boolean addToBackStack) {
        // Set the arguments
        setArguments(fragment);

        // Navigate without adding to the back stack as we do not expect that behaviour
        final FragmentTransaction transaction = mActivityContext.getFragmentManager().beginTransaction();
        transaction.setCustomAnimations(android.R.animator.fade_in, android.R.animator.fade_out);
        navigate(fragment, transaction, addToBackStack);
    }
/**
     * Navigate to a fragment
     *
     * @param fragment       fragment reference, should be of the concrete type
     * @param addToBackStack true to add to the back stack, false otherwise
     */
Navigate to a fragment
@param fragment       fragment reference, should be of the concrete type
@param addToBackStack true to add to the back stack, false otherwise
Navigate to a fragment @param fragment fragment reference should be of the concrete type @param addToBackStack true to add to the back stack false otherwise
private void navigateToFragment(final Fragment fragment, final boolean addToBackStack) {
        setArguments(fragment);
        final FragmentTransaction transaction = mActivityContext.getFragmentManager().beginTransaction();
        transaction.setCustomAnimations(android.R.animator.fade_in, android.R.animator.fade_out);
        navigate(fragment, transaction, addToBackStack);
    }
private void navigateToFragment ( final Fragment fragment , final boolean addToBackStack ) { setArguments ( fragment ) ; final FragmentTransaction transaction = mActivityContext . getFragmentManager ( ) . beginTransaction ( ) ; transaction . setCustomAnimations ( android . R . animator . fade_in , android . R . animator . fade_out ) ; navigate ( fragment , transaction , addToBackStack ) ; }
Navigate to a fragment
 @param fragment       fragment reference, should be of the concrete type
 @param addToBackStack true to add to the back stack, false otherwise
Navigate to a fragment @param fragment fragment reference should be of the concrete type @param addToBackStack true to add to the back stack false otherwise
// Set the arguments // Navigate without adding to the back stack as we do not expect that behaviour