-
-
Notifications
You must be signed in to change notification settings - Fork 442
OpenXR - Switching between 2D and XR #676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
No need to call |
I tried that, it didn't work. |
|
It did not work with exception or it simply and silently ignored changes? |
|
I am not so sure about this but it seems to me you should pass it to GLSurfaceView's thread with |
|
And in clientConnectedStateChanged too. |
|
It silently ignored the changes. As far as I understand it. When I open the preference screen from the system notifications, it opens a new instance of the app which doesn't contain XrActivity. |
|
That is correct, but why exactly you think it is related? |
|
BradcastReceiver receiving notification about preferences changed is registered in runtime. So XrActivity receives it too. |
|
It is like running two separate apps. The one with the preference screen doesn't contain instance of XrActivity. I just tested this in XrActivity: and it isn't called. |
|
It is weird.
|
It isn't possible to mix XR and 2D content in one activity. As I start the XrActivity another activity is created. In my point of view the behavior is expected.
I cannot say why the broadcast doesn't work. The XR behavior in Android apps isn't documented at all. |
When user opens in the headset 2D preferences screen in XR mode then it behaves like two separate apps.
In this PR I did following changes:
getMainDisplayXrActivitytolibxrioprivate