App does not display normally after closing multi window (in Android 10+)

Hello.

After my Cocos2d-x app “Divide and Rule” start, user makes a multi-window, starting another app; so my app get screen resize notification and it properly resizes (become smaller). So there are two apps on a screen: my on top and another (internet browser for example) at the bottom.
Then user expands my app window (google name it “unsplit multi-tasking screen”), (my app) screen become black, “Back” key should switch my app screen but nothing happens.

My app was built with cocos2d-x-3.17.2.
I have not tested it with cocos version 4.0 – please inform me does any cocos app built with 4.0 works right after closing multi window (in Android 10 or greater)?

Now I use a workaround with fixed app/AndroidManifest.xml :
<activity android:configChanges="orientation|keyboardHidden|screenSize" android:label="@string/app_name" android:launchMode="singleTask" android:name="org.cocos2dx.cpp.AppActivity" android:taskAffinity="" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:resizeableActivity="false" android:supportsPictureInPicture="false" >
– two last activities added.

…I think it should be improved in cocos2d-x.