Fix animation in shelf is not notch aware
The NotificationSelf doesn't aware the existence of the notch. It
could get the exactly rect of the top cutout/notch by using
onApplyWindowInsets. The solution is to use the
Interpolators.FAST_OUT_SLOW_IN_REVERSE to interpolate the the new
value of openedAmount if there is a top cutout exists.
The new openedAmount will impact the parameter 'width'.
In order to let the animation more smooth, to add the cutout height
to the denominator of the counting formula.
Test: manual test
Change-Id: I8ed510b6f5de8f566bdc9fa7da95d87643ffb1d4
Fixes: 111724799
1 file changed