Is there any reason that this `if` cannot be merged with the one above like

    if ((this._screenOffBy == 'proximity') && ( ... )) {
      ...
    }

?