summaryrefslogtreecommitdiff
path: root/native/android/configuration.cpp
diff options
context:
space:
mode:
author Steve Elliott <steell@google.com> 2023-05-15 17:15:46 -0400
committer Steve Elliott <steell@google.com> 2023-05-30 21:44:02 +0000
commitc197cbec0d58524241c37eaf152300deb07ccaeb (patch)
tree0e5b0f1191b232624d5624d37d2650a6a4407e51 /native/android/configuration.cpp
parent59fc320479545ced40ce5742d32f47c21524facd (diff)
Individually track vis duration of unseen notifs
Previously, if the user has been on the keyguard for 5 seconds, then we mark all unseen notifications as seen when the device is unlocked, even if some notifications were not present for the entire (or any of the) 5 second visible duration. We now track for each unseen notification that since it has been posted / the device was locked, that the user has been on the keyguard for 5 seconds. When a notification has reached this threshold, it is marked as "seen on lockscreen", and will be marked as seen for real once the device is unlocked. Note that if the notification is updated, the 5 second threshold is reset. Fixes: 277616032 Test: atest KeyguardCoordinatorTest Change-Id: I8bcd3e8aef4662970dd52ba5748d7f51ba652ba4
Diffstat (limited to 'native/android/configuration.cpp')
0 files changed, 0 insertions, 0 deletions