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

Skip to content
Commit c02c388f authored by felkachang's avatar felkachang
Browse files

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
parent 642d495f
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