Allow clicks on the custom widget in CheckBoxPreference

Most of this was copied verbatim from SwitchPreferenceCompat.

When using a custom widgetLayout, a listener needs to be attached to
listen for changes to the checked state, so that this can be passed
into the preference system.

Change-Id: Ieabdfd76d82f8bfd7f313613e25766cea8c3b65b
1 file changed