Android - notched phones

Hi - I would like to get rid of the black bar in Android - notched phones

I tried placing this in res/styles.xml

<style name="ActivityTheme">
<item name="android:windowLayoutInDisplayCutoutMode">
 shortEdges
</item>
</style>

But the bar is still black

All Idear welcome