summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorfelkachang <felkachang@google.com>2018-07-27 15:32:31 +0800
committerfelkachang <felkachang@google.com>2018-08-08 15:09:24 +0800
commitc02c388fde72da9de6546c63dca84ef0bb277527 (patch)
tree19f89d3ed1b6f655d8a5fb2bcccece239766064e /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent642d495ff50cb238687a0a9ebe3b2d7aeec7e87d (diff)
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
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions