Skip to content

Comments

Fix screen state logic for devices without NFC.#2819

Merged
pmuetschard merged 2 commits intogoogle:masterfrom
pmuetschard:screen
Jun 7, 2019
Merged

Fix screen state logic for devices without NFC.#2819
pmuetschard merged 2 commits intogoogle:masterfrom
pmuetschard:screen

Conversation

@pmuetschard
Copy link
Member

@pmuetschard pmuetschard commented Jun 6, 2019

Don't use the NFC service to determine screen state, as there are devices that don't have NFC, which will cause the "dumpsys nfc" command to fail.

Fixes #2736

Don't use the NFC service to determine screen state, as there are
devices that don't have NFC, which will cause the "dumpsys nfc" command
to fail.
If we fail to determine the screen state, ignore it, print a warning, and
keep going. That is, only fail if we know the screen state and were
unable to unlock.
Copy link
Contributor

@hevrard hevrard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Many thanks for this fix

@pmuetschard pmuetschard merged commit 832c953 into google:master Jun 7, 2019
@pmuetschard pmuetschard deleted the screen branch June 7, 2019 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android inside Chromebook

3 participants