Why are you setting value of "pref.biometric_enable" in onNavigationItemSelected? Aren't you already doing it in setOnToggledListener?