private void handleSelectionView(IProfile profile, boolean on) {
        if (on) {
            if (Build.VERSION.SDK_INT >= 23) {
                mAccountHeaderContainer.setForeground(AppCompatResources.getDrawable(mAccountHeaderContainer.getContext(), mAccountHeaderTextSectionBackgroundResource));
            } else {
                // todo foreground thing?
            }
            mAccountHeaderContainer.setOnClickListener(onSelectionClickListener);
            mAccountHeaderContainer.setTag(R.id.material_drawer_profile_header, profile);
        } else {
            if (Build.VERSION.SDK_INT >= 23) {
                mAccountHeaderContainer.setForeground(null);
            } else {
                // TODO foreground reset
            }
            mAccountHeaderContainer.setOnClickListener(null);
        }
    }
private void handleSelectionView ( IProfile profile , boolean on ) { if ( on ) { if ( Build . VERSION . SDK_INT >= 23 ) { mAccountHeaderContainer . setForeground ( AppCompatResources . getDrawable ( mAccountHeaderContainer . getContext ( ) , mAccountHeaderTextSectionBackgroundResource ) ) ; } else { } mAccountHeaderContainer . setOnClickListener ( onSelectionClickListener ) ; mAccountHeaderContainer . setTag ( R . id . material_drawer_profile_header , profile ) ; } else { if ( Build . VERSION . SDK_INT >= 23 ) { mAccountHeaderContainer . setForeground ( null ) ; } else { } mAccountHeaderContainer . setOnClickListener ( null ) ; } }
a small helper to handle the selectionView

@param on