fix for getting boolean value from preferences in onFocusChange methods of fields