argon-app icon indicating copy to clipboard operation
argon-app copied to clipboard

Possible orientation change race conditions

Open kimberlysiva opened this issue 8 years ago • 0 comments
trafficstars

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.

kimberlysiva avatar Apr 26 '17 12:04 kimberlysiva