I tried to disable a preference in the following way (I am desperate enough to set all possible things here):
SettingsActivity.SettingsFragment pfc = Settings