ButtonSettings: Simplify code

* Instead of null checking before every setEnabled() call, introduce
  a method that does that

Change-Id: I1c6cac7d1e2aff20f6c12ce03d0e474863acdad0
1 file changed