Skip to content
Commit 38a76cc8 authored by Jeff DeCew's avatar Jeff DeCew
Browse files

Fix the lockscreen height recalculation on face auth.

When face auth happens, the SensitiveContentCoordinator calls setSensitive on every visible notification, which triggers the views to suddenly show their private version.  This often has a new height, and that new height affects both the height of the stack and how many notifications are on screen.  Often things would get fixed once the ambinent indication appeared, because that was an input to the calculation, but if your phone had another ambient indication already on when your face triggered the unlock (e.g. charging) then that trigger didn't work.

This CL ensures that when setSensitive() is called, calls notifyHeightChanged (when a height change is detected). This ensures that the NSSL's existing listener recalculates the stack height.  This fixes the case where a single redacted notification would be truncated after unlock.

This CL also ensures that when notifyHeightChanged() is called, the NotificationPanelView calls updateMaxDisplayedNotifications (when on the keyguard).  This fixes the much more rare case where the number of notifications shown would be incorrect until some other change triggered the recalculation.

Fixes: 230016435
Test: significant manual testing
Test: atest NotificationPanelViewControllerTest ExpandableNotificationRowTest
Change-Id: I509f97afef16a723ba43dbd58ae589c961d78755
parent eb700c00
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