Revert suppression of recalculation to fix jump after aod->ls animation
The change I6575f733b17d6c8905150c0a7854d752dd0a5cfe suppressed recalculation of the number of notifications whenever dozeAmount != 0. However, this meant that from the time the device was locked to the time it finished the screen on animation, the number of notifications that fit on the device was never updated. In cases where notifications changed while on aod, this meant the number could be completely wrong. But even without that, this meant that when locking the device and then unlocking, the count would be based on the height of the notifications given their non-keyguard expansion state (i.e. first notification expanded) which meant that we almost always showed too few notifications during the aod->ls transition. I am unable to reproduce b/229882633 (which that CL was fixing) until I also revert I139d25e2bb57257a18f18f6288f3e18b7a1b72d1 which landed a week later. Bug: 229882633 Fixes: 232079794 Test: atest NotificationPanelViewControllerTest Test: numerous failed attempts to reproduce b/229882633#comment2 Test: unlock; screen off (to aod); screen on (to ls); observe no jumps Test: post notify notifications with "no text" ; slow animations; lock; aod -> ls; post notifications via shell during animation; observe no jumps during or at end of animation Change-Id: Ib3a3c6377a71cc4c1a1b06eb652237a5493a56d0
Loading
Please register or sign in to comment