ButtonSettings: Consolidate some redundant CheckboxPreference handling click code, and inline a method called from one place.

Change-Id: I1e0da859d5fed002064bb88dfb5539623b429ca3