```js
CameraController.prototype.onHDRChange = function(hdr) {
  var flashMode = this.settings.flashModesPicture.selected('key');
  var isOn = hdr === 'on';
  if (isOn && flashModes !== 'off') {
    this.settings.flashModesPicture.select('off');
  }
};
```