Several pieces of the system need to respond to orientation changes:
Action Bar needs to show/hide
System UI needs to show/hide (e.g. button bar on Android)
Vuforia needs to reconfigure camera background and rendering primitives
Argon needs to publish the device state
These events are not instantaneous. For example, if we make changes to the System UI visibility on an orientation change event it will be a few hundred milliseconds before the views have the correct new size.
Currently, we handle this issue with a variety of timeouts, e.g. configuring Vuforia 500ms after an orientation event. There are possible race conditions here, we may want to clean up this logic.
Search the project for setTimeout to find the current fixes.
Several pieces of the system need to respond to orientation changes:
These events are not instantaneous. For example, if we make changes to the System UI visibility on an orientation change event it will be a few hundred milliseconds before the views have the correct new size.
Currently, we handle this issue with a variety of timeouts, e.g. configuring Vuforia 500ms after an orientation event. There are possible race conditions here, we may want to clean up this logic.
Search the project for
setTimeout
to find the current fixes.