Samsung / GearVRf

The GearVR framework(GearVRf) is an Open Source VR rendering library for application development on VR-supported Android devices.
http://www.gearvrf.org
Apache License 2.0
407 stars 217 forks source link

Cleans up controllers in onPause() #2018

Closed ejsamsung closed 5 years ago

ejsamsung commented 5 years ago

Instead of cleaning up the controllers in response to onDestroy(), clean them up in response to onPause(). If onDestroy() doesn't get called for some reason, skipping the clean up seems to cause intermittent issues for subsequent apps; onPause() is, in some circumstances, a more reliable place to do this.

ejsamsung commented 5 years ago

GearVRf-DCO-1.0-Signed-off-by: Erik Jaesler erik.jaesler@samsung.com