Open formatCvt opened 5 years ago
Hi @formatCvt ,
Tried to use new getSafeAreaRect
implementation that supports cutouts.
It seems that cutout insets are cached and won't be recalculated after device becomes rotated.
Did you test that case?
Hey @AIGRIND-LLC, unfortunately i don't test this case
Despite this https://github.com/cocos2d/cocos2d-x/issues/18810 issue, however cutout still is not supported by cocos (incl 3.17.1)
If we are rendering into the cutout area, we should use
WindowInsets.getDisplayCutout()
to retrieve aDisplayCutout
object that contains the safe insets and bounding box for each cutout https://developer.android.com/reference/android/view/DisplayCutoutPR is coming.