diff options
| author | 2024-11-01 16:12:45 +0100 | |
|---|---|---|
| committer | 2024-11-01 15:58:24 +0000 | |
| commit | b81fc8cf5fdb50a268e8c25dd744408ac1bad4d3 (patch) | |
| tree | c7506af8b7f76fd796d35c048aeecee1b4755824 /tests/DynamicCodeLoggerIntegrationTests | |
| parent | cd4bc44f77282752914ac6f49fe137ff40bd1886 (diff) | |
Remove handler callbacks correctly
Use removeCallbacksAndEqualMessages when removing handler callbacks by notification key.
If a notification was updated and then canceled during the DELAY_FORCE_REGROUP_TIME: the callback was not removed because Handler#removeCallbacksMessages would check for reference equality, which would fail because the update would create a new
NotificationRecord with the same key.
Also skip calling GroupHelper#onNotificationPostedWithDelay if the notification was removed during DELAY_FORCE_REGROUP_TIME.
Flag: android.service.notification.notification_force_grouping
Test: atest NotificationManagerServiceTest
Bug: 376222541
Change-Id: I651c6d094558c558153f0a4e667ce4c3874ca398
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests')
0 files changed, 0 insertions, 0 deletions