Skip to content
Commit 1761fce0 authored by Alex Salo's avatar Alex Salo
Browse files

Fix whenToCheck returned by AttentionDetector

There could be a situation in which updateUserActivity would not be
called within [dim_t-3s(attention_timeout), dim_t], in which case we
will miss the "bad" event. Fix that by returning the computed
whenToCheck value, which is nextScreenDimming-attention_timeout.

Test: manually with logging
Bug: 111939367
Change-Id: I66e4a1e86582afe06a277ba8dbb127583940ea19
parent a0d18b60
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment