I have to set immersive_sticky for my app. The code works at startup, but when the app is being resumed it causes an exception about how only the UI thread can touch the view. How could I do this from c++ because the solution I saw was runonuithread for java.
This is where I found the code to get it working for startup:
How do I enable full screen immersive mode for a Native Activity NDK app?