Corrected code for handling switch release events.
Merge branch 'issue-294' into issue-295

Conflicts:
	package/tecla/addon/TeclaAccessibilityService.java
Added missing line back to handleSwitchEvent method.
Updated preferences on resume of setting activity.
Set self scanning when inverse scanning is changed.