980 - fix the listener for the on/off switch

This fixes #980.

Changes the toggle switch to use onCheckedChanged() which corrects tap vs swipe gestures on the on/off switch.