public static boolean toggleActionBar(@NonNull final AbstractNavigationBarActivity activity) {
        if (!Settings.getMapActionbarAutohide()) {
            return true;
        }
        final boolean actionBarShowing = toggleActionBarHelper(activity);
        final View spacer = activity.findViewById(R.id.actionBarSpacer);
        ViewUtils.applyToView(activity.findViewById(R.id.filterbar), view -> view.animate().translationY(actionBarShowing ? 0 : -spacer.getHeight()).start());
        ViewUtils.applyToView(activity.findViewById(R.id.distanceinfo), view -> view.animate().translationY(actionBarShowing ? 0 : -spacer.getHeight()).start());
        ViewUtils.applyToView(activity.findViewById(R.id.map_progressbar), view -> view.animate().translationY(actionBarShowing ? 0 : -spacer.getHeight()).start());
        return actionBarShowing;
    }
use this instead of AbstractBottomNavigationActivity.setContentView for being able to use a action bar toogle
main/src/main/java/cgeo/geocaching/utils/HideActionBarUtils.java