private static void showActionBarSpacer(@NonNull final Activity activity, final boolean showSpacer) {
        if (Settings.getMapActionbarAutohide()) {
            activity.findViewById(R.id.actionBarSpacer).setVisibility(showSpacer ? View.VISIBLE : View.GONE);
        }
    }
use this instead of AbstractBottomNavigationActivity.setContentView for being able to use a action bar toogle
main/src/main/java/cgeo/geocaching/utils/HideActionBarUtils.java