Didn't work for me.
But I did find this line in my Manifest
SetApplicationAttribute(android:resizeableActivity, "false")
Not sure why I had it. But changed the false to true and now my app moves from Cover Screen to inside the open fold and resizes and back to the cover screen when closed. Just what I wanted.
NOTE: I also added screenLayout to my configChanges
SetActivityAttribute(Main, android:configChanges, "orientation|keyboard|keyboardHidden|screenSize|uiMode|screenLayout")
This is suppose to resize the activity without restarting??
By default, Android restarts an activity (destroying and recreating it) when configuration changes occur, such as a change in orientation, screen size, or language settings.
To prevent this for foldable devices and window resizing, add the following attribute to your activity tag in AndroidManifest.xml: android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation".
This tells the system that your app will handle these configuration changes directly, rather than relying on activity recreation.
Not sure if any of this helps you as well.