private void setCacheTitleBar(@NonNull final CharSequence title, @Nullable final CacheType type) {
        setTitle(title);
        final ActionBar actionBar = getSupportActionBar();
        if (actionBar != null) {
            if (type != null) {
                actionBar.setDisplayShowHomeEnabled(true);
                actionBar.setIcon(ResourcesCompat.getDrawable(getResources(), type.iconId, null));
            } else {
                actionBar.setIcon(android.R.color.transparent);
            }
        }
    }
Common actions for all onCreate functions.
main/src/main/java/cgeo/geocaching/activity/AbstractActivity.java