OmniVirt / OmniVirtVRPlayer-Android-Example

Play VR Content on your Android application in just a single line of code.
https://www.omnivirt.com/vr-player/
23 stars 8 forks source link

Error in some Locales #7

Open andreikr79 opened 5 years ago

andreikr79 commented 5 years ago

"OmniVirt.api.sendMessage('deviceorientation', " + String.format("{alpha: %f, beta: %f, gamma: %f, orientation: %d}", alpha, beta, gamma, Integer.valueOf(screenOrientation)) + ", document.getElementsByTagName('iframe')[0], false)"

But in some locales (for example Russian) String.format("%f") return number with a comma not a dot. So device orientation not working in some locales

mcchris commented 4 years ago

Yes confirm for polish locale the same issue.