Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0d2e209b authored by Steve Elliott's avatar Steve Elliott
Browse files

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.

REVERT^2: In order to reduce potential jank, we now only start tracking
seen notifications when locked if the setting is enabled.

Fixes: 277616032
Test: atest KeyguardCoordinatorTest
Change-Id: Iec2fdc977157bda85b41c5c64bfcce6d2ec9fd7f
parent f49451bb
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